#include <Channel.hpp>
Public Methods | |
Channel () | |
~Channel () | |
bool | Open (std::string &p_RemoteNode, unsigned short p_RemoteEnd) throw (ChannelException) |
Open a socket to a given remote node/server address with remote port. More... | |
void | Close () |
Close all open sockets and clean up. | |
const Channel & | operator>> (std::string &msg) |
Read from a open socket and store read message in msg. More... | |
const Channel & | operator<< (const std::string &msg) |
Write a given message (msg) to the end-point using the open socket. More... | |
const std::string & | GetLastError () |
Return last error (if any). | |
void | SetTransportHandler (Transport *transport) |
Set the SOAP transport handler. |
Implements primitive socket connection for all platforms, for sending/receiving SOAP Envelops with given transport; This implementation abstract the low-level communications.
|
Create a Channel & initialize |
|
Open a socket to a given remote node/server address with remote port. This channel open INET channel for the time being using primitive sockets Do we need any other type of channel; like shared memory, pipes etc. ????
|
|
Write a given message (msg) to the end-point using the open socket. Write/send a message to the remote server; sending blocks the app. we may need to do this asynchronizely; preferably either non-blocking send or pthread.
|
|
Read from a open socket and store read message in msg. Read/receive a message from the remote server; reading may be done in chunks.
|