Class Stdio.Port
- Description
Handles listening to socket ports. Whenever you need a bound socket that is open and listens for connections you should use this program.
- Inherit
_port
inherit _Stdio._port : _port
- Method
create
Stdio.Port Stdio.Port()
Stdio.Port Stdio.Port(int|stringport)
Stdio.Port Stdio.Port(int|stringport,function(:void)accept_callback)
Stdio.Port Stdio.Port(int|stringport,function(:void)accept_callback,stringip)
Stdio.Port Stdio.Port("stdin")
Stdio.Port Stdio.Port("stdin",function(:void)accept_callback)- Description
If the first argument is other than
"stdin"the arguments will be passed to bind().When create is called with
"stdin"as the first argument, a socket is created out of the file descriptor0. This is only useful if it actually is a socket to begin with.- See also