edelib 2.0.0
Public Member Functions

SipcClient Class Reference

Simple IPC client. More...

#include </usr/src/RPM/BUILD/edelib-2.0/edelib/Sipc.h>

List of all members.

Public Member Functions

 SipcClient ()
 ~SipcClient ()
bool connect (const char *prefix)
void send (const char *msg)

Detailed Description

Simple IPC client.

A client side of this simple IPC implementation. Clients will connects on the names servers are using and send textual messages to them.

Here is the sample:

   SipcClient c;
   if(!c.connect("demo"))
    // fail
   c.send("howdy");
Note:
Message length is currently is limited to 1024 bytes.

Constructor & Destructor Documentation

Constructor; prepares internal data

~SipcClient ( )

Cleans internal stuff, closes connections


Member Function Documentation

bool connect ( const char *  prefix)

Connects to the given name

Returns:
false if name does not exists or some error occured
Parameters:
prefixis name to be connected to
void send ( const char *  msg)

Sends an message

Parameters:
msgis textual message

The documentation for this class was generated from the following file: