|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
21 #ifndef ELM_NET_SERVERSOCKET_H_
22 #define ELM_NET_SERVERSOCKET_H_
24 #include <elm/io/InStream.h>
25 #include <elm/io/OutStream.h>
26 #include <elm/net/Exception.h>
28 namespace elm {
namespace net {
42 virtual int port(
void)
const = 0;
43 virtual void open(
void) = 0;
45 virtual void close(
void) = 0;
53 inline int port(
void)
const {
if(sock)
return sock->
port();
else return -1; }
virtual void onConnection(Connection &connection)=0
void manage(void)
Definition: net_ServerSocket.cpp:448
virtual ~ServerSocket(void)
Definition: net_ServerSocket.cpp:360
Definition: ServerSocket.h:30
int port(void) const
Definition: ServerSocket.h:53
Definition: ServerSocket.h:37
void open(void)
Definition: net_ServerSocket.cpp:424
virtual ~Connection(void)
Definition: net_ServerSocket.cpp:95
void close(void)
Definition: net_ServerSocket.cpp:437
virtual int port(void) const =0
Server(void)
Definition: net_ServerSocket.cpp:402
virtual ~Server(void)
Definition: net_ServerSocket.cpp:416
virtual io::OutStream & out(void)=0
Definition: OutStream.h:30
virtual void open(void)=0
Definition: ServerSocket.h:48
static ServerSocket * make(void)
Definition: net_ServerSocket.cpp:343
virtual Connection * listen(void)=0
virtual io::InStream & in(void)=0
virtual void close(void)=0
Definition: InStream.h:29