Function Reference


TCPShutdown, UDPShutdown

Stops TCP/UDP services.

TCPShutdown ( )
UDPShutdown ( )

Parameters

None.

Return Value

Success: Returns 1.
Failure: Returns 0 and set @error.
@error: windows API WSACleanup return value (see MSDN).

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