ISocket Class Reference

Generic socket interface. More...

#include <ISocket.h>

Inherits IInterface.

Inherited by IDataSocket, and IListenSocket.

List of all members.

Public Member Functions

manipulators

virtual void bind (const CNetworkAddress &)=0
 Bind socket to address.
virtual void close ()=0
 Close socket.

accessors



virtual void * getEventTarget () const =0
 Get event target.
static CEvent::Type getDisconnectedEvent ()
 Get disconnected event type.

Detailed Description

Generic socket interface.

This interface defines the methods common to all network sockets. Generated events use this as the target.

Definition at line 32 of file ISocket.h.


Member Function Documentation

virtual void ISocket::bind ( const CNetworkAddress  )  [pure virtual]

Bind socket to address.

Binds the socket to a particular address.

Implemented in CTCPListenSocket, and IListenSocket.

virtual void ISocket::close (  )  [pure virtual]

Close socket.

Closes the socket. This should flush the output stream.

Implemented in CTCPListenSocket, and IListenSocket.

CEvent::Type ISocket::getDisconnectedEvent (  )  [static]

Get disconnected event type.

Returns the socket disconnected event type. A socket sends this event when the remote side of the socket has disconnected or shutdown both input and output.

Definition at line 29 of file ISocket.cpp.

Referenced by CTCPSocket::close(), and CTCPSocket::read().

virtual void* ISocket::getEventTarget (  )  const [pure virtual]

Get event target.

Returns the event target for events generated by this socket.

Implemented in CTCPListenSocket, and IListenSocket.


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