WYRDTEK Home Features Reference Downloads About


Reference/es_sock_tcpconnectip

Syntax

int es_sock_tcpconnectname( int fd, const char *hostname, int port );
stname

Arguments

int fd File-descriptor of tcp/ip socket.
const char *hostname Host alias string.
int port Port number.

Description

connect()s tcp/ip socket to remote server listening on port number port at host-alias hostname.

Use es_sock_tcpconnectip() to connect explicitly by IP address.

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

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