Unit 'Sockets' Package
[Overview][Constants][Types][Procedures and functions][Index] [#rtl]

CloseSocket

Closes a socket handle.

Declaration

Source position: socketsh.inc line 172

function CloseSocket(

  Sock: LongInt

):LongInt;

Description

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

Errors

On error, -1 is returned.

See also

FPSocket

  

Create new socket.


Documentation generated on: Nov 24 2024