listen

start listening on given port and return new socket


Parameters

listen port :integer

Attributes

blocking:stringset blocking mode (default: false)
udpuse UDP instead of TCP

Returns

  • :socket

Examples

copy
; start a server listening on port 18966 server: listen 18966

Related