Provides both client and server sides of blocking TCP connections. More...
#include <Net.h>
Classes | |
| class | Listener |
| Listens to the specified port for incoming TCP connections. More... | |
Static Public Member Functions | |
| static void | InitializeSockets () |
| Automatically called by Connect and Listener. More... | |
| static bool | Connect (Sock &connection, const RStr &host, const RStr &port, bool quiet_fail=true) |
| Opens a TCP connection to host:port. More... | |
Provides both client and server sides of blocking TCP connections.
|
inlinestatic |
Opens a TCP connection to host:port.
Will throw ErrorMsgNet upon failure to connect if quiet_fail is false.
|
inlinestatic |
Automatically called by Connect and Listener.
The first time this is called, it sets SIGPIPE to ignore so the program doesn't terminate while writing to a closed socket. Call this once manually beforehand if you want to set your own custom handler for SIGPIPE.
1.9.1