Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
ph_rfd(3)			C Library Calls			     ph_rfd(3)

NAME
       ph_rfd, ph_wfd -	return file descriptors	associated with	a PH handle

SYNOPSIS
       #include	<phclient.h>

       int ph_rfd(PH *ph);
       int ph_wfd(PH *ph);

VERSION
       This man	page documents version 1.2 of libphclient.

DESCRIPTION
       The ph_rfd() and	ph_wfd() functions allow the application to access the
       underlying file descriptors used	by the PH  handle  ph  to  communicate
       with the	PH server.  The	application can	use this information to	detect
       communications problems with the	server using poll() or select().

RETURN VALUES
       The ph_rfd() function returns the file descriptor used for reading from
       the server.

       The  ph_wfd()  function returns the file	descriptor used	for writing to
       the server.

NOTES
       The file	descriptors used for reading and writing may be	 (and  usually
       are) the	same.

       The application must not	write to or read from the file descriptors re-
       turned by the ph_rfd() and ph_wfd() functions.  If it does, the PH han-
       dle  may	 be left in an inconsistent state, and all subsequent behavior
       is undefined.

SEE ALSO
       ph_open(3)

University of Illinois		   Oct 2002			     ph_rfd(3)

NAME | SYNOPSIS | VERSION | DESCRIPTION | RETURN VALUES | NOTES | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=ph_rfd&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help