[Miwi-middleware] KIARA: Version 0.10.0

Dmitri Rubinstein rubinstein at cs.uni-saarland.de
Fri Feb 21 10:37:03 CET 2014


Hi. I finished and pushed to ZHAW Gitorious Repos a new version of 
KIARA. This is a major feature release.

* New features:

1. A new network stack was implemented with TCP-based transport 
additionally to HTTP-based. Now it is possible to create connections 
that communicate with less overhead. The API was not changed much:

Old version:

// Server waiting for the incoming negotiation connections (over HTTP!)
// on specified port and HTTP path is "/service" :
KIARA_Server *server;
server = kiaraNewServer(ctx, "0.0.0.0", atoi(port), "/service");

// The specified service is provided via HTTP on path "/rpc/aostest"
kiaraAddService(server, "/rpc/aostest", protocol, service);

In the new version path is an URL (similar to ZMQ address). When it is 
relative it refers to the HTTP negotiation server created with 
kiaraNewServer. When it is absolute KIARA starts a new HTTP server:

// New HTTP Server on port 9090
kiaraAddService(server, "http://0.0.0.0:9090/rpc/aostest", protocol, 
service);

TCP works in the same way:

kiaraAddService(server, "tcp://0.0.0.0:2020", protocol, service);

Internally each transport has a priority, and TCP has a higher priority 
then HTTP. Thus, when service is available over HTTP and TCP, TCP will 
be used. Currently protocol is not taken into account.

The implemented TCP transport is simple. First comes 32-bit little 
endian number which specifies a size of the message, then message 
itself. Errors are represented by empty messages (size == 0).

There are no changes in installation instructions.

Best,

Dmitri



More information about the Miwi-middleware mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy