Create new socket.
Source position: socketsh.inc line 156
function fpsocket( |
domain: cint; |
xtype: cint; |
protocol: cint |
):cint; |
fpSocket creates a new socket in domain Domain, from type xType using protocol Protocol. The Domain, Socket type and Protocol can be specified using predefined constants (see the section on constants for available constants) If successful, the function returns a socket descriptor, which can be passed to a subsequent fpBind call. If unsuccessfully, the function returns -1.
for an example, see Accept.
Errors are returned in SocketError, and include the following:
|
Create socket pair. |