svc_fdset Global Variable

Note: Do not pass the address of this variable to any of the select subroutines. Instead pass a copy of the address.

Purpose

Indicates the read-file descriptor bit mask of the remote procedure call (RPC) server.

Library

Network Services Library (libnsl.a)

Syntax

#include <rpc/rpc.h>
fd_set svc_fdset

Description

The svc_fdset global variable is a read-only global variable, indicating the read-file descriptor bit mask of the remote procedure call (RPC) server. The variable is normally used when the server handles RPC requests asynchronously (the svc_run subroutine is not used). The value of the svc_fdset global variable might change after calls to the svc_getreqset, svc_getreq_poll or other RPC service handle creation subroutines. The value of the svc_fdset global variable is limited to 1024. Servers running in MT mode cannot read this variable. Instead they can create auxiliary threads to handle asynchronous requests.