help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions] Reference for unit 'Sockets' (#rtl)

Shutdown

Close one end of full duplex connection.

Declaration

Source position: socketsh.inc line 189

function Shutdown(

  Sock: LongInt;

  How: LongInt

):LongInt;

Description

ShutDown closes one end of a full duplex socket connection, described by Sock. 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 succes, the function returns 0, on error -1 is returned.

Errors

SocketError is used to report errors, and includes the following:

SYS_EBADF
The socket descriptor is invalid.
SYS_ENOTCONN
The socket isn't connected.
SYS_ENOTSOCK
The descriptor is not a socket.

See also

Socket

  

Create new socket

Connect

  

Open a connection to a server socket.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505