IListenSocket Class Reference

Listen socket interface. More...

#include <IListenSocket.h>

Inherits ISocket.

Inherited by CTCPListenSocket.

Collaboration diagram for IListenSocket:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void bind (const CNetworkAddress &)=0
 Bind socket to address.
virtual void close ()=0
 Close socket.
virtual void * getEventTarget () const =0
 Get event target.
manipulators



virtual IDataSocketaccept ()=0
 Accept connection.

Static Public Member Functions

accessors



static CEvent::Type getConnectingEvent ()
 Get connecting event type.

Detailed Description

Listen socket interface.

This interface defines the methods common to all network sockets that listen for incoming connections.

Definition at line 27 of file IListenSocket.h.


Member Function Documentation

virtual IDataSocket* IListenSocket::accept (  )  [pure virtual]

Accept connection.

Accept a connection, returning a socket representing the full-duplex data stream. Returns NULL if no socket is waiting to be accepted. This is only valid after a call to bind().

Implemented in CTCPListenSocket.

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

Bind socket to address.

Binds the socket to a particular address.

Implements ISocket.

Implemented in CTCPListenSocket.

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

Close socket.

Closes the socket. This should flush the output stream.

Implements ISocket.

Implemented in CTCPListenSocket.

CEvent::Type IListenSocket::getConnectingEvent (  )  [static]

Get connecting event type.

Returns the socket connecting event type. A socket sends this event when a remote connection is waiting to be accepted.

Definition at line 24 of file IListenSocket.cpp.

References CEvent::registerTypeOnce().

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

Get event target.

Returns the event target for events generated by this socket.

Implements ISocket.

Implemented in CTCPListenSocket.


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

Generated on 12 Nov 2010 for synergy-plus by  doxygen 1.6.1