MoSync 3.3
MAUtil::ServerListener Class Reference

Receives events from MAUtil::Server. More...

#include <MAUtil/Server.h>

List of all members.

Public Member Functions

virtual void serverAcceptFailed (Server *server, int result)
virtual void serverAccepted (Server *server, Connection *newConnection)=0

Detailed Description

Receives events from MAUtil::Server.

Member Function Documentation

virtual void MAUtil::ServerListener::serverAcceptFailed ( Server server,
int  result 
) [virtual]

Called when a Server::accept() operation fails. The default implementation does nothing.

serverThe Server.
resultOne of the CONNERR error codes.
virtual void MAUtil::ServerListener::serverAccepted ( Server server,
Connection newConnection 
) [pure virtual]

Called when a Server::accept() operation succeeds.

serverThe Server.
newConnectionThe incoming Connection. When you're done with it, be sure to delete it, to avoid memory leaks.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines