Function Reference
TCPStartup, UDPStartup
Starts TCP or UDP services.
Parameters
None.
Return Value
| Success: |
Returns 1. |
| Failure: |
Returns 0 and set @error. |
| @error: |
windows API WSAStartup return value (see MSDN). |
Remarks
There must be a TCPShutdown() call to avoid memory consumption.
A script must call one TCPShutdown() call for every successful TCPStartup() call.
UDPStartup() is just an alias of TCPStartup().
Related
TCPShutdown, TCPListen, TCPCloseSocket, UDPCloseSocket, TCPAccept, TCPConnect, TCPNameToIP, TCPRecv, TCPSend
Example
TCPStartup() ; To start TCP services