XSocket API  2.0
XIA Socket Library
Functions
Xbind.c File Reference

Xbind() - bind a name to a socket. More...

#include "Xsocket.h"

Functions

int Xbind (int sockfd, const struct sockaddr *addr, socklen_t addrlen)
 bind a DAG to an Xsocket More...
 

Function Documentation

int Xbind ( int  sockfd,
const struct sockaddr *  addr,
socklen_t  addrlen 
)

Assign the specified DAG to to the Xsocket referred to by sockfd. The DAG's final intent should be a valid SID.

Parameters
sockfdThe socket
addrsockaddr_x structure containing the DAG to be assigned
addrlenThe size of addr
Note
See the man page for the standard bind() call for more details.
Returns
0 on success
-1 on error with errno set to an error compatible with those retuned by the standard bind call.