Creates a socket object which listens on the given port.
If the port argument is an integer, then it represents a TCP port number and in which case the socket is bound to IN_ADDR_ANY and the socket will accept connections on any IP address. The port argument may also be a <inet-socket-addr>, in which case the socket will accept connections only on the particular IP address and port.