zStatus zTcpClient_Connect(zTcpClient client, zIPAddress address, z32u port, z64u timeout);
|
Parameters |
Description |
|
zTcpClient client |
zTcpClient object. |
|
zIPAddress address |
The remote IP address. |
|
z32u port |
The remote port number. |
|
z64u timeout |
The timeout interval, in microseconds. |
Attempts to connect the client to a remote end point until either a connection is established, the remote end point refuses the connection, or the specified timeout interval elapses.
A connection can be established only once per zTcpClient object. After an initial connection is created and closed, the zTcpClient object cannot be used to create another connection.
zTcpClient.h