#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. More... | |
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). More... | |
void | SetTransportHandler (Transport *transport) |
Set the SOAP transport handler. More... | |
Private Methods | |
bool | Init () |
OS specific initilization. More... | |
void | Error (const char *err) |
Report error on read/write. More... | |
void | CloseChannel () |
Close & clean-up the open socket/system resources. More... | |
Private Attributes | |
unsigned int | m_Sock |
Socket descriptor. More... | |
std::string | m_RemoteNode |
Remote address could be IP/host-name. More... | |
unsigned short | m_RemoteEnd |
Remote port number. More... | |
std::string | m_LastErr |
Last error as a string. More... | |
Transport* | m_pTransportHandler |
Transport handler for validation purpose. More... |
Implements primitive socket connection for all platforms, for sending/receiving SOAP Envelops with given transport; This implementation abstract the low-level communications.
Definition at line 144 of file Channel.hpp.
|
Create a Channel & initialize Definition at line 77 of file Channel.cpp. |
|
Definition at line 82 of file Channel.cpp. |
|
Close all open sockets and clean up.
Definition at line 154 of file Channel.hpp. |
|
Close & clean-up the open socket/system resources. Close, and clean-up any OS specific stuff Definition at line 279 of file Channel.cpp. Referenced by Close(), Init(), operator<<(), operator>>(), and ~Channel().
|
|
Report error on read/write. Log any errors that cause on channel usage/initilaization Definition at line 302 of file Channel.cpp. Referenced by Init(), operator<<(), and operator>>().
|
|
Return last error (if any).
Definition at line 163 of file Channel.hpp. |
|
OS specific initilization. OS specific initialization should do here
Definition at line 167 of file Channel.cpp. |
|
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. ????
Definition at line 98 of file Channel.cpp. |
|
Set the SOAP transport handler.
Definition at line 166 of file Channel.hpp. |
|
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.
Definition at line 210 of file Channel.cpp. |
|
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.
Definition at line 236 of file Channel.cpp. |
|
Last error as a string.
Definition at line 181 of file Channel.hpp. |
|
Remote port number.
Definition at line 180 of file Channel.hpp. |
|
Remote address could be IP/host-name.
Definition at line 179 of file Channel.hpp. |
|
Socket descriptor.
Definition at line 178 of file Channel.hpp. |
|
Transport handler for validation purpose.
Definition at line 183 of file Channel.hpp. |
Copyright © 2001 SL_OpenSource XML Project. All Rights Reserved