man PConn_bind (Fonctions bibliothèques) - PConn_bind

NAME

PConn_bind - bind an address to a

LIBRARY

libpconn

SYNOPSIS

#include <palm.h>#include <pconn/pconn.h>PConn_bind PConnection *pconn const void *addr const int addrlen

DESCRIPTION

associates an address with pconn , which must already have been created with new_PConnection .

In practice, this function is not terribly useful. If pconn was created with PCONN_STACK_FULL , use struct slp_addr pcaddr;

pcaddr.protocol = SLP_PKTTYPE_PAD; pcaddr.port = (ubyte) SLP_PORT_DLP; PConn_bind(pconn, &pcaddr, sizeof(struct slp_addr));

In all other cases, addr and addrlen are ignored. However, it is still necessary to call since it may have side effects.

RETURN VALUE

SEE ALSO