OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::net Namespace Reference

Functions

OT_SYS_API_EXPORT unsigned long checkTCPConnection (port_t _port, const char *_ip)
 Will check if a TCP connection can be established.
 
OT_SYS_API_EXPORT std::wstring getLastError (void)
 Will return the last error text.
 

Function Documentation

◆ checkTCPConnection()

OT_SYS_API_EXPORT unsigned long ot::net::checkTCPConnection ( port_t _port,
const char * _ip )

Will check if a TCP connection can be established.

Parameters
_portThe target port
_ipThe target ip
Returns
0 if a connection could be established, othewise returns the error code

◆ getLastError()

std::wstring ot::net::getLastError ( void )

Will return the last error text.