Listens to the specified port for incoming TCP connections. More...
#include <Net.h>
Public Member Functions | |
| Listener (const RStr &port) | |
| Begin listening to the specified port for incoming TCP connections. More... | |
| ~Listener () | |
| If open, this closes the port being listened to. | |
| SOCKET | Raw () const |
| Provides the raw socket descriptor being listened to. | |
| bool | Accept (Sock &connection, bool quiet_fail=true) |
| Accept an incoming connection, with read/write access through the FileRW connection. More... | |
Listens to the specified port for incoming TCP connections.
|
inline |
Begin listening to the specified port for incoming TCP connections.
Use Accept to accept a connection.
|
inline |
Accept an incoming connection, with read/write access through the FileRW connection.
This throws an ErrorMsgNet on error if quiet_fail is false.
1.9.1