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



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

CloseSocket

Closes a socket handle.

Declaration

Source position: socketsh.inc line 180

function CloseSocket(

  Sock: LongInt

):LongInt;

Description

CloseSocket closes a socket handle. It returns 0 if the socket was closed succesfully, -1 if it failed.

Errors

On error, -1 is returned.

See also

Socket

  

Create new socket

Notes

 No notes exist for this page yet. 





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