AdsLib
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TcpSocket Struct Reference
Inheritance diagram for TcpSocket:
Socket

Public Member Functions

 TcpSocket (const struct addrinfo *host)
 
uint32_t Connect () const
 
bool IsConnectedTo (const struct addrinfo *targetAddresses) const
 
- Public Member Functions inherited from Socket
Frameread (Frame &frame, timeval *timeout) const
 
size_t read (uint8_t *buffer, size_t maxBytes, timeval *timeout) const
 
size_t write (const Frame &frame) const
 
void Shutdown ()
 

Additional Inherited Members

- Protected Member Functions inherited from Socket
 Socket (const struct addrinfo *host, int type)
 
bool Select (timeval *timeout) const
 
- Protected Attributes inherited from Socket
int m_WSAInitialized
 
SOCKET m_Socket
 
sockaddr_storage m_SockAddress
 
const sockaddr *const m_DestAddr
 
socklen_t m_DestAddrLen
 

Member Function Documentation

◆ IsConnectedTo()

bool TcpSocket::IsConnectedTo ( const struct addrinfo *  targetAddresses) const

Confirm if this TcpSocket is connected to one of the target addresses.

Parameters
[in]targetAddressespointer to a previously allocated list of "struct addrinfo" returned by getaddrinfo(3).
Returns
true, this connection can be used to reach one of the targetAddresses.

The documentation for this struct was generated from the following files: