commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SocketClient Class Reference
+ Inheritance diagram for SocketClient:

Public Member Functions

 SocketClient ()
 
 SocketClient (const SocketClient &)
 
SocketClientoperator= (const SocketClient &)
 
 SocketClient (const AString &address)
 
 ~SocketClient ()
 
bool connect_to (const AString &address)
 
bool connect_to (sockaddr *address)
 
bool is_connected () const
 
long send_receive (CommBuffer &, CommBuffer &)
 
void interface_release ()
 
- Public Member Functions inherited from SocketConnection
 SocketConnection ()
 
 SocketConnection (Descriptor descriptor)
 
 ~SocketConnection ()
 
Descriptor get_descriptor () const
 
bool is_receiving () const
 
bool accept ()
 
long send_buffer (CommBuffer &buf)
 
void close ()
 
const AStringget_from_address () const
 
const AStringget_to_address () const
 
const AStringget_address () const
 
- Public Member Functions inherited from Socket
 Socket ()
 
 ~Socket ()
 
bool is_busy () const
 
void set_busy (bool busy)
 
virtual bool accept_dispatch (const PTCPIPListenerBucket &listener)
 
virtual void set (PTCPIPListenerBucket listener)
 
virtual PTCPIPListenerBucket get_listener ()
 
virtual int get_port () const
 
virtual bool is_acceptor () const
 
void run ()
 
- Public Member Functions inherited from commore::Action
 Action ()
 
virtual ~Action ()
 
void submit (Processor &processor)
 
void stop (Processor &processor, bool wait=true)
 
void abort (Processor &processor, bool wait=true)
 
bool is_to_stop ()
 
bool is_to_abort ()
 
bool is_running ()
 
bool is_stopped ()
 
int wait (Processor &processor, const int timeout_ms=0)
 
void reset ()
 
commore::CriticalSectionget_cs ()
 
- Public Member Functions inherited from commore::RefObject
 RefObject ()
 
virtual ~RefObject ()
 
virtual void attach ()
 
virtual void release ()
 
virtual void nested_attach ()
 
virtual void nested_release ()
 
virtual void Run ()
 

Friends

class TCPIPSender
 

Additional Inherited Members

- Static Public Member Functions inherited from commore::RefObject
static AutoRefBase auto_create ()
 
static AutoRefBase auto_create (const AChar *s)
 
static AutoRefBase create ()
 
static AutoRefBase create (const AChar *s)
 
static AutoRefBase bind ()
 
static AutoRefBase bind (const AChar *s)
 
static const ACharfactory_name ()
 
- Public Attributes inherited from SocketConnection
TimeDate start_connection_
 
TimeDate start_message_
 
- Protected Member Functions inherited from SocketConnection
SocketConnectionoperator= (const SocketConnection &)
 
- Protected Attributes inherited from SocketConnection
Descriptor descriptor_
 
bool is_connected_
 
bool is_crypted_
 
AString pass_phrase_
 
UseNetwork init_
 
CommBuffer inBuff_
 
AString from_address_
 
AString to_address_
 
AString address_
 

Constructor & Destructor Documentation

SocketClient::SocketClient ( )
SocketClient::SocketClient ( const SocketClient )
SocketClient::SocketClient ( const AString address)
SocketClient::~SocketClient ( )

Member Function Documentation

bool SocketClient::connect_to ( const AString address)
bool SocketClient::connect_to ( sockaddr *  address)
void SocketClient::interface_release ( )
virtual

Call when nested_release reach count 0 To be implemented by ref object

Todo:
is usefull

Reimplemented from commore::RefObject.

bool SocketClient::is_connected ( ) const
inlinevirtual

Reimplemented from SocketConnection.

SocketClient& SocketClient::operator= ( const SocketClient )
long SocketClient::send_receive ( CommBuffer inBufReq,
CommBuffer outBufReq 
)
virtual

Reimplemented from Socket.

Friends And Related Function Documentation

friend class TCPIPSender
friend

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