svc_max_pollfd Global Variable

Purpose

Indicates the maximum length of the svc_pollfd array.

Library

Network Services Library (libnsl.a)

Syntax

#include <rpc/rpc.h>
pollfd_t *svc_pollfd;

Description

The svc_max_pollfd global variable is a read-only global variable indicating the maximum length of the svc_pollfd array. This variable is generally used when the svc_run subroutine is not used and a server wants to handle remote procedure call (RPC) service requests asynchronously. Its value might change when the svc_getreq_poll subroutine is called or when other RPC service handle-creation subroutines are called.