fpshutdown function
Close one end of full duplex connection.
Declaration
function fpshutdown(s: cint; how: cint): cintDescription
fpShutDown closes one end of a full duplex socket connection, described
by
S. The parameter
How determines how the connection
will be shut down, and can be one of the following:
- 0
- Further receives are disallowed.
- 1
- Further sends are disallowed.
- 2
- Sending nor receiving are allowed.
On success, the function returns 0, on error -1 is returned.
Errors
SocketError is used to report errors, and includes the following:
- ESockEBADF
- The socket descriptor is invalid.
- ESockENOTCONN
- The socket isn't connected.
- ESockENOTSOCK
- The descriptor is not a socket.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
