Very Simple Cross-Platform Library
|
#include <LocalConnector.h>
Public Member Functions | |
bool | connect () |
Public Member Functions inherited from hu::varadiistvan::scpl::io::FailableReference< LocalConnector > | |
bool | failed () const |
errorCode_t | getErrorCode () const |
void | repair () |
Class representing the creation of a connection to some remote entity, like a socket or a pipe. It cannot be created directly, only acquired from a client socket.
Definition at line 46 of file LocalConnector.h.
bool hu::varadiistvan::scpl::io::LocalConnector::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.