soClose (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

All

Firmware version:

1.08.00


The soClose function closes a socket opened by the soCreate function. After calling this function the handle is no longer valid and can no longer be used with the socket functions.

 

 

Input:

socket : SYSHANDLE

Handle to the socket.

 

 

Returns: INT

1

- Success.

0

- The function is not supported.

-1

- The handle is not a valid socket.

 

Declaration:

FUNCTION soClose : INT;
VAR_INPUT
  socket : ACCESS SYSHANDLE;
END_VAR;

 

 


Example:

 

Please see the "Examples - Telnet server2"