Very Simple Cross-Platform Library
Public Member Functions | List of all members
hu::varadiistvan::scpl::io::TCPConnector Class Reference

#include <TCPConnector.h>

Inheritance diagram for hu::varadiistvan::scpl::io::TCPConnector:
hu::varadiistvan::scpl::io::FailableReference< TCPConnector >

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 ()
 

Detailed Description

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.

Member Function Documentation

◆ connect()

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.


The documentation for this class was generated from the following file: