Zen API
zSocket_Connect
C
zStatus zSocket_Connect(zSocket socket, zIPAddress address, z32u port, z64u timeout);
Parameters
Parameters 
Description 
zSocket socket 
zSocket object. 
zIPAddress address 
The remote IP address. 
z32u port 
The remote port number. 
z64u timeout 
The timeout interval, in microseconds. 
Description

Attempts to connect the socket 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 attempted only once per zSocket object. After an initial connection attempt, the zSocket object cannot be used to create another connection and should be destroyed.

File

zSocket.h

Copyright (c) 2008-2010 by LMI Technologies Inc. All rights reserved.