Very Simple Cross-Platform Library
|
#include <TCPConnector.h>
Public Member Functions | |
bool | connect () |
Public Member Functions inherited from hu::varadiistvan::scpl::io::FailableReference< TCPConnector > | |
bool | failed () const |
errorCode_t | getErrorCode () const |
void | repair () |
Class representing the creation of a connection to a remote TCP socket. It cannot be created directly, only acquired from a TCP client socket.
Definition at line 45 of file TCPConnector.h.
bool hu::varadiistvan::scpl::io::TCPConnector::connect | ( | ) |
Connect to an address properly set up.
If the connection succeeds immediately, it indicates success.
If the connection does not succeed, because it would block, it sets up the socket to wait for the connection to succeed, and returns failure.
If the connection fails for another reason, the error code is set, and false is returned.