WINSOCK LISTEN
Creates a new channel and sets it to listen mode on the specified port. This means it will wait for connection requests on the specified port. The channel uses TCP. Usually you will want your server to listen on a channel for connection requests, and, if a request happened, accept it with a new channel using WINSOCK ACCEPT(). The listen channel will remain in its listen mode, unless there has been an exception, which can be (should be) checked with the channel error function WINSOCK CHANNEL ERROR().
You can optionally specify the local host to which you want your channel to be bound. Default is "0.0.0.0" (allows connections from anywhere). If you only want to allow connections/messages from the LAN, specify your LAN IP, if you only want to allow connections from your machine, use "127.0.0.1" as the local_host.
NOTE: channel is what else is known as socket. channel is the name used throughout this system, and denotes not only the socket its using, but also any properties that belong to it.
SYNTAX
Return Dword=WINSOCK LISTEN([local_host as String,] local_port as Integer)
RELATED INFO
WINSOCK command menu
Index
EXAMPLE
Showcase-example 1
Showcase-example 2