Function Reference

TCPStartup, UDPStartup

Starts TCP or UDP services.

TCPStartup ( )
UDPStartup ( )

 

Parameters

None.

 

Return Value

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

 

Remarks

There must be a TCPShutdown() call to avoid memory consomption.
A script must call one TCPShutdown() call for every successful TCPStartup() call.
UDPStartup() is just an alias of TCPStartup().

 

Related

TCPShutdown, TCPListen, TCPCloseSocket, UDPCloseSocket

 

Example


TCPStartup ( )  ; To start TCP services