_TCPServer_Start
Previous Top Next

_TCPServer_Start ( int $iPort [ , string $sInterface = 'any' ] )

·     $iPort: The port where the server shall listen.
·     $sInterface [optional]: The interface where the server shall listen. Default is any interface.

Starts listening in port given.

If $sInterface is not given, the server will listen on any interface.

Before using this, be sure you've already set the three main events and max client number.

Return value:
Success:          Nothing
Error:                False and sets error to non-zero (same value from TCPListen())