socketpair man page on Minix

Man page or keyword search:  
man Server   6208 pages
apropos Keyword Search (all sections)
Output format
Minix logo
[printable version]

SOCKETPAIR(2)							 SOCKETPAIR(2)

NAME
       socketpair - creates a pair of connected sockets.

SYNOPSIS
       #include <sys/socket.h>

       int socketpair(int domain, int type, int protocol, int sv[2]);

DESCRIPTION
       socketpair() creates two connected sockets of the specified type in the
       specified domain using  the  specified  protocol	 and  stores  the  two
       resulting socket descriptors in sv[2].

RETURN VALUES
       On  success, this function returns 0, and sv[2] is set to the two newly
       created socket descriptors. On error, -1 is returned and errno is set.

ERRORS
       [EAFNOSUPPORT] The domain is not supported.

       [EPROTOTYPE]   The protocol is not supported by the domain.

       [EPROTONOSUPPORT]
		      The protocol is not supported by the type.

       [EINVAL]	      The pair of sockets aren't in a valid state or  are  not
		      connection oriented sockets.

       [EPERM]	      The  user	 ID,  group  ID,  and  process ID of the first
		      socket doesn't match that of the second.

NOTES
       This function is only implemented for unix domain  sockets.  Therefore,
       the only valid value for domain is AF_UNIX

SEE ALSO
       socket(2), unix(8)

HISTORY
       This function first appeared in Minix 3.1.8.

								 SOCKETPAIR(2)
[top]

List of man pages available for Minix

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