Main Page   Class Hierarchy   Compound List   File List   Compound Members  

Channel Class Reference

The primitive socket implementation for SOAP Envelops passing. More...

#include <Channel.hpp>

List of all members.

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.


Detailed Description

The primitive socket implementation for SOAP Envelops passing.

Implements primitive socket connection for all platforms, for sending/receiving SOAP Envelops with given transport; This implementation abstract the low-level communications.


Constructor & Destructor Documentation

Channel::Channel  
 

Create a Channel & initialize


Member Function Documentation

bool Channel::Open std::string &    p_RemoteNode,
unsigned short    p_RemoteEnd
throw (ChannelException)
 

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. ????

Parameters:
p_RemoteNode  End point address as hostname/IP
p_RemoteEnd  Port #
Returns:
true if successfuly open a soket to the endpoint. o/w exception is thrown

const Channel & Channel::operator<< const std::string &    msg
 

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.

Parameters:
Message  to be written to the open channel

const Channel & Channel::operator>> std::string &    msg
 

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.

Parameters:
string  to hold the read Message


The documentation for this class was generated from the following files:
Generated on Mon Dec 1 15:10:28 2003 for axisc++ by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002