WYRDTEK Home Features Reference Downloads About


Reference/es_sock_tcpconnectip

Syntax

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

Arguments

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

Description

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. "192.168.1.4").

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]