Function SocketCreate() Professional
Creates a new socket and binds it to a given port.
SocketCreate( [<nSocketType>] , ; <nPort> , ; [<cLocalAddress>], ; [<lReuseAddress>], ; [@<nError>] ) --> nSocket
|SOCK_STREAM *)||TCP stream socket|
|SOCK_DGRAM||UDP datagram socket|
The function returns a numeric socket descriptor on success. If a socket cannot be created, the value of the #define constant INVALID_SOCKET is returned.
This function is used on the server side of a communication channel. It creates a socket and binds it to the specified address and port, which is equivalent to calling SocketNew() and SocketBind(). The bound socket is then used to listen to or to accept incoming communication requests.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.