rpcb_getport_sync(9)

rpcb_getport_sync9

Obtain the port for an rpc service on a given host

Usage

int rpcb_getport_sync(struct sockaddr_in * sin, u32 prog, u32 vers, int prot);

Arguments

sin

address of remote peer

prog

RPC program number to bind

vers

RPC version number to bind

prot

transport protocol to use to make this request

Overview

Return value is the requested advertised port number, or a negative errno value.

Called from outside the RPC client in a synchronous task context. Uses default timeout parameters specified by underlying transport.

XXX

Needs to support IPv6

Releases

2 releases since Debian 5.0 (Lenny); the text changed 1 time.

  1. 5.0
  2. 6.0

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.