SockIt
|
#include <Server.h>
Public Member Functions | |
Server () | |
virtual | ~Server () |
virtual void | start_listening ()=0 |
virtual int | get_port ()=0 |
FB_JSAPI_EVENT (open, 0,()) |
An abstract interface for a server object. This registers the generic server-specific events to javascript, and registers the 'start_listening' method to the javascript API.
Server::Server | ( | ) |
Default constructor for a server object, which registers the 'start_listening' function to the javascript API.
Definition at line 10 of file Server.cpp.
References get_port(), and start_listening().
{ registerMethod("listen", make_method(this, &Server::start_listening)); registerMethod("getPort", make_method(this, &Server::get_port)); }
virtual Server::~Server | ( | ) | [inline, virtual] |
Server::FB_JSAPI_EVENT | ( | open | , |
0 | , | ||
() | |||
) |
A javascript event to be fired when the server has started listening for incoming connections successfully.
virtual int Server::get_port | ( | ) | [pure virtual] |
virtual void Server::start_listening | ( | ) | [pure virtual] |