Very Simple Cross-Platform Library
|
#include <LocalServerSocket.h>
Public Member Functions | |
LocalServerSocket (const char *name, Waiter *waiter=0) | |
LocalAcceptor & | getAcceptor () |
A server socket that provides a local, named access point. On Linux, it is a Unix socket, on Windows it is a named pipe.
It is identified by a name that should be unique for the user.
Definition at line 47 of file LocalServerSocket.h.
hu::varadiistvan::scpl::io::LocalServerSocket::LocalServerSocket | ( | const char * | name, |
Waiter * | waiter = 0 |
||
) |
Construct the socket with the given name.
It will be bound to the name and able to listen for incoming connections.
name | the name of the server socket that can be used by clients to connect to this socket |
waiter | the waiter to use for waiting a possible event occuring on the socket. If given, the socket will be non-blocking. Otherwise, it will be blocking, and the accept() function of the Acceptor might block. |
LocalAcceptor& hu::varadiistvan::scpl::io::LocalServerSocket::getAcceptor | ( | ) |
Get the acceptor.