WYRDTEK Home Features Reference Downloads About


Reference/es_sock_udpconnectip

Syntax

int es_sock_udpconnectname( int fd, const char *hostname, int port );

Arguments

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

Description

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

Use es_sock_udpconnectip() 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]