PConn_bind(3)

PConn_bind3

Bind an address to a pconnection

Usage

#include <palm.h>

#include <pconn/pconn.h>

int

PConn_bind(PConnection *pconn, const void *addr, const int addrlen);

Library

libpconn

Overview

PConn_bind 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 PConn_bind since it may have side effects.

Return value

Releases

Unchanged in 3 releases since Debian 3.0 (Woody).

  1. 3.0–4.0

From coldsync 3.0+pre3-3 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.