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

#include <LocalConnector.h>

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

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

Detailed Description

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.

Member Function Documentation

◆ connect()

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.


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