cmpt_get_peer_cid man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

cmpt_get_peer_cid(3)					  cmpt_get_peer_cid(3)

NAME
       cmpt_get_peer_cid(),  cmpt_get_endpoint_cid() - get the compartment IDs
       for INET domain communications.

SYNOPSIS

   Parameters
	      s	     INET domain socket or stream.

DESCRIPTION
       The and functions return	 the  compartments  associated	with  an  INET
       domain transport endpoint (a socket or a stream).

       The  function  returns  the  compartment	 ID  (cid) associated with the
       transport endpoint s.  The cid of a transport endpoint is  set  to  the
       process's cid at the time of creation, and does not change even when it
       is transferred between processes or the creating	 process  changes  its
       compartment.

       The  function returns the compartment ID of the peer that the transport
       endpoint s is communicating with.  For loopback communications, the cid
       is the one associated with the peer transport endpoint.	For communica‐
       tions over a network interface, the peer cid is the one associated with
       the network interface where communications are being received.  For TCP
       communications, the peer cid is persistent once a connection is	estab‐
       lished.	 For  other protocols, the peer cid may change for each packet
       that is received.

       The function returns an error if a connection is not  established  (for
       TCP) or no communication has been received (for all other protocols).

RETURN VALUE
       and return the following values:

	      Successful completion.
		      The function returns a valid compartment ID.

	      Function failed.
		      is  set to indicate the error from the underlying system
		      call.

ERRORS
       See ioctl(2) for errors indicated by

DEPENDENCIES
       These functions are a part of the library.

SEE ALSO
       compartments(4), compartments(5).

							  cmpt_get_peer_cid(3)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net