WYRDTEK Home Features Reference Downloads About


Reference/es_sock_udpconnectip

Syntax

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

Arguments

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

Description

connect()s udp/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_udpconnectname() 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]