WYRDTEK Home Features Reference Downloads About



int es_sock_tcpconnectip( int fd, const char *ipaddr, int port );


int fd File-descriptor of tcp/ip socket.
const char *ipaddr String representation of IP address.
int port Port number.


connect()s tcp/ip socket to remote server listening on port number port at IP address ipaddr. ipaddr is a period delimited string representation of the four byte network address (eg. "").

Use es_sock_tcpconnectname() to connect by host alias.

Returns zero on success and returns errno (from the standard library errno.h) on error.

[Back To Reference] [Back To Reference/es_sock]