SipcClient Class Reference

Simple IPC client. More...

#include <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

SipcClient (  ) 

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:
prefix is name to be connected to

void send ( const char *  msg  ) 

Sends an message

Parameters:
msg is textual message


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

Generated on Thu Dec 24 05:12:28 2009 for edelib by  doxygen 1.5.9