Libt2n

Libt2n

Infobox Software
name = libt2n



caption =
developer =
latest_release_version = 0.4
latest_release_date = Sep 26, 2008
latest_preview_version =
latest_preview_date =
operating_system = Unix-like
platform =
genre = Inter-process communication
license = LGPL
website = [http://www.intra2net.com/de/produkte/opensource/libt2n/ intra2net.com/de/produkte/opensource/libt2n/]

libt2n is a free software library which offers a simple way for C++ applications to communicate with one another.

Introduction

libt2n is an inter-process communication (IPC) system which is focused on ease of use an a minimum of code-lines needed to export and use methods. This is achieved by reducing the feature-set and relying on the serialization library developed at Boost.

The goals of libt2n development are:
* easy to use, minimum of code-lines needed to export and use methods
* handles complex C++ structures like maps of vectors, etc.
* passes exceptions from the server back to the caller
* easy integration into GNU Autotools and Pkg-config

The limitations of the current libt2n implementation:
* C++ only
* Synchronous, blocking, no callbacks
* no server-side objects, just functions you can call
* no threads or multiple server processes for handling multiple requests at once

Architecture

libt2n is devided in two parts:
* The library which is linked to every client and server
* The code generator used to create stubs and skeletons

The code generator does not use an Interface description language (IDL), but parses the source code of the server for special tags. It produces the code needed to handle the calls on the server and a ready-to-use library for the client.

If a remote function is called, the client library creates an object describing the call, including all parameters. This object is serialized using the Boost serialization library and transferred to the server. Currently this can be done using Unix domain sockets or TCP. The server deserializes the object and calls the corresponding method. The result (return value or exception) is again serialized and sent back to the client.

Trivia

t2n is an abbreviation for 'talk to neighbor'.

External links

* [http://www.intra2net.com/de/produkte/opensource/libt2n/ Official libt2n website]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Inter-process communication — For other uses, see IPC. In computing, Inter process communication (IPC) is a set of methods for the exchange of data among multiple threads in one or more processes. Processes may be running on one or more computers connected by a network. IPC… …   Wikipedia

  • Comunicación entre procesos — La comunicación entre procesos, en inglés IPC (Inter process Communication) es una función básica de los sistemas operativos. Los procesos pueden comunicarse entre sí a través de compartir espacios de memoria, ya sean variables compartidas o… …   Wikipedia Español

  • Межпроцессное взаимодействие — (англ. Inter Process Communication, IPC)  набор способов обмена данными между множеством потоков в одном или более процессах. Процессы могут быть запущены на одном или более компьютерах, связанных между собой сетью. IPC способы делятся… …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”