libdodo: dodo::io::network::ssl::exchange Class Reference

dodo::io::network::ssl::exchange Class Reference

provides SSL communication interface[send/receive data] More...

#include <ioNetworkSslExchange.h>

Inheritance diagram for dodo::io::network::ssl::exchange:
Collaboration diagram for dodo::io::network::ssl::exchange:

List of all members.

Classes

class  __init__
 holds info that passes to accept call, and then inits exchange; More...

Public Member Functions

 exchange (short protection=channel::PROTECTION_PROCESS)
 constructor
 exchange (__init__ &init, short protection=channel::PROTECTION_PROCESS)
 constructor
virtual ~exchange ()
 destructor
virtual bool isAlive ()
virtual void close ()
 close connection

Protected Member Functions

void _close (int socket, io::ssl::__connection__ *handle)
 close socket connection
void init (int socket, io::ssl::__connection__ *handle, bool blocked, bool blockInherited)
 init current instance
virtual unsigned long _read (char *const data) const
virtual unsigned long _readString (char *const data) const
 read null- or newline- terminated string
virtual unsigned long _write (const char *const data) const

Protected Attributes

io::ssl::__connection__ * handle
 SSL connection handle.

Detailed Description

provides SSL communication interface[send/receive data]

Definition at line 53 of file ioNetworkSslExchange.h.


Constructor & Destructor Documentation

dodo::io::network::ssl::exchange::exchange ( short  protection = channel::PROTECTION_PROCESS  ) 

constructor

Parameters:
protection defines type of IO protection,
See also:
io::channel::protectionEnum

Reimplemented from dodo::io::network::exchange.

dodo::io::network::ssl::exchange::exchange ( __init__ init,
short  protection = channel::PROTECTION_PROCESS 
)

constructor

Parameters:
init is initial data[got from the accept method]
protection defines type of IO protection,
See also:
io::channel::protectionEnum
Note:
the object that has inited the object of current instance can be used for another connections

Reimplemented from dodo::io::network::exchange.

virtual dodo::io::network::ssl::exchange::~exchange (  )  [virtual]

destructor

Reimplemented from dodo::io::network::exchange.


Member Function Documentation

void dodo::io::network::ssl::exchange::_close ( int  socket,
io::ssl::__connection__ *  handle 
) [protected]

close socket connection

Parameters:
socket defines socket descriptor
handle defines SSL handle
virtual unsigned long dodo::io::network::ssl::exchange::_read ( char *const   data  )  const [protected, virtual]
Returns:
amount in bytes of successfully read data
Parameters:
data defines buffer that will be filled
Note:
not more then bs(including null)

Reimplemented from dodo::io::network::exchange.

virtual unsigned long dodo::io::network::ssl::exchange::_readString ( char *const   data  )  const [protected, virtual]

read null- or newline- terminated string

Returns:
amount in bytes of successfully read data
Parameters:
data defines buffer that will be filled
Note:
not more then bs(including null)

Reimplemented from dodo::io::network::exchange.

virtual unsigned long dodo::io::network::ssl::exchange::_write ( const char *const   data  )  const [protected, virtual]
Returns:
amount in bytes of successfully written data
Parameters:
data defines data that will be written

Reimplemented from dodo::io::network::exchange.

virtual void dodo::io::network::ssl::exchange::close (  )  [virtual]

close connection

Reimplemented from dodo::io::network::exchange.

void dodo::io::network::ssl::exchange::init ( int  socket,
io::ssl::__connection__ *  handle,
bool  blocked,
bool  blockInherited 
) [protected]

init current instance

Parameters:
socket defines socket
handle defines SSL handle
blocked defines the connection block status
blockInherited defines block flag inheritance
virtual bool dodo::io::network::ssl::exchange::isAlive (  )  [virtual]
Returns:
true if connection is alive

Reimplemented from dodo::io::network::exchange.


Member Data Documentation

io::ssl::__connection__* dodo::io::network::ssl::exchange::handle [protected]

SSL connection handle.

Definition at line 132 of file ioNetworkSslExchange.h.


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

Generated on Sun Nov 8 03:44:57 2009 for libdodo by  doxygen 1.6.1