Function Reference

TCPShutdown, UDPShutdown

Stops TCP/UDP services.

TCPShutdown ( )
UDPShutdown ( )

 

Parameters

None.

 

Return Value

Success: Returns 1.
Failure: Returns 0 and set @error according to Windows API WSACleanup return.

 

Remarks

A script must call one TCPShutdown() call for every successful TCPStartup() call.
UDPShutdown() is just an alias of TCPShutdown().

 

Related

TCPStartup, TCPListen, TCPCloseSocket, UDPCloseSocket

 

Example


TCPStartup()    ; To start TCP services

TCPShutdown ( ) ; To stop TCP services