| OpenSS7 SS7 for the Common Man | © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. Last modified: Sat, 01 Nov 2008 10:42:37 GMT | ||||||||||||||||
| |||||||||||||||||
| Manpage of SOCKETDescription: Manual PageKeywords: ss7 ss7/ip ss7 over ip ss7 mtp ss7 sccp ss7 tcap sigtran mtp sccp tcap openss7 acb56 linux telephony pstn linux telephony linux nebs linux compactpciSOCKETSection: OpenSS7 STREAMS Sockets Library Calls (3)Updated: 2008-10-31 Index Return to Main Contents NAMEsocket - create an endpoint for communicationSYNOPSIS#include <sys/socket.h>
ARGUMENTS
DESCRIPTIONThe socket() function creates an unbound socket in a communications domain, and returns a file descriptor that can be used in later function calls that operate on sockets. The domain argument specifies the address family used in the communications domain. The address families supported by the system are implementation-dependent. Symbolic constants that can be used for the domain argument are defined in the <sys/socket.h> header. The type argument specifies the socket type, which determines the semantics of communication over the socket. The socket types supported by the system are implementation-dependent. Possible socket types include:
If the protocol argument is non-zero, it must specify a protocol that is supported by the address family. The protocols supported by the system are implementation-dependent. The process may need to have appropriate privileges to use the socket() function or to create some sockets. NOTESThe documentation for specific address families specify which protocols each address family supports. The documentation for specific protocols specify which socket types each protocol supports. The application can determine if an address family is supported by trying to create a socket with domain set to the protocol in question. CAVEATSThis system call is implemented as a SIOCSOCKSYS IOCTL. See socksys(4) for more information. RETURN VALUEUpon successful completion, socket() returns a nonnegative integer, the socket file descriptor. Otherwise a value of -1 is returned and errno(3) is set to indicate the error. ERRORSThe socket() function will fail if:
The socket() function may fail if:
SEE ALSOaccept(3), bind(3), connect(3), getsockname(3), getsockopt(3), listen(3), recv(3), recvfrom(3), recvmsg(3), send(3), sendmsg(3), setsockopt(3), shutdown(3), socketpair(3), <netinet/in.h>, <sys/socket.h>. COMPATIBILITYThis function and sockets implementation is compatible to SVR 4.2[1], and implementations based on SVR 4.2, including Solaris®[2], with the following portability considerations:
See sockets(3) and socklib(3) for more compatibility information. CONFORMING TOThe Open Group XNS Issue 5.2[4]. HISTORYMost sockets functions first appeared in 4BSD. REFERENCES
TRADEMARKS
Other trademarks are the property of their respective owners. IDENTIFICATION
Copyright©1997-2008OpenSS7 Corp.
All Rights Reserved.
Index
This document was created by man2html, using the manual pages. Time: 07:55:14 GMT, May 20, 2013 | ||||||||||||||||
| OpenSS7 SS7 for the Common Man |
| ||||||||||||||||
| Last modified: Sat, 01 Nov 2008 10:42:37 GMT © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. |