op_socket()
Note: Requires Shared Code functionality
Abstract
Creates a socket.
Syntax
op_socket (domain, type, protocol)
| Argument | Type | Description |
|---|---|---|
domain |
int |
Protocol family for the new socket (must be AF_INET) |
type |
int |
Connection type for the socket (must be SOCK_STREAM or SOCK_DGRAM) |
protocol |
int |
Transport protocol to be used (must be 0) |
Return Type
int
File descriptor for the new socket; -1 if unsuccessful.
Header
shared_code_support.h