n2nc::net::SocketEvents Class Reference

Socket events to avoid explicits callbacks. More...

#include <socketevents.h>

Inheritance diagram for n2nc::net::SocketEvents:

Inheritance graph
[legend]

List of all members.

Protected Member Functions

virtual int onReceive (Socket &sock, int dtlen)=0
virtual int onNewConnection (Socket &sock)=0
virtual int onWriteComplete (Socket &sock)=0
virtual int onClose (Socket &sock)=0
virtual int onError (Socket &sock)=0
virtual int onRawReceive (Socket &sock)=0
virtual int onSelectEvent (SocketEventsHandler::socket_extra_t *sock_extra, SocketEventsHandler::check_for_t cause)

Friends

class SocketEventsHandler


Detailed Description

Socket events to avoid explicits callbacks.

Author:
fabsoft <fabsoft@gmail.com>

Definition at line 17 of file socketevents.h.


Member Function Documentation

int n2nc::net::SocketEvents::onSelectEvent ( SocketEventsHandler::socket_extra_t *  sock_extra,
SocketEventsHandler::check_for_t  cause 
) [protected, virtual]

when returns 0

NOTE defaulting to get the socket disabled in select polling to avoid possible uncontrolled loops.

Definition at line 15 of file socketevents.cpp.

References n2nc::net::SocketEventsHandler::EXCEPT, n2nc::net::SocketEventsHandler::NOTHING, n2nc::net::SocketEventsHandler::READ, and n2nc::net::SocketEventsHandler::WRITE.


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

Generated on Mon Oct 6 19:32:49 2008 for n2nc by  doxygen 1.5.5