ot::Ip6::Tcp::Endpoint::Connect() method
Records the remote host and port for this connection. By default TCP Fast Open is used. This means that this function merely records the remote host and port, and that the TCP connection establishment handshake only happens on the first call to otTcpSendByReference(). TCP Fast Open can be explicitly disabled using @p aFlags, in which case the TCP connection establishment handshake is initiated immediately. @sa otTcpConnect
Arguments
aSockName
The IP address and port of the host to which to connect.
aFlags
Flags specifying options for this operation (see enumeration above).
Return value
kErrorNone Successfully completed the operation. kErrorFailed Failed to complete the operation.