Skip to content

Std socket socket listen

std:std.socket.Socket.Listen

Function Listen:Socket( service:String,backlog:Int=32,flags:SocketFlags=SocketFlags.Passive )#
Function Listen:Socket( hostname:String,service:String,backlog:Int=128 )#

Creates a stream server socket and listens on it.

Returns a new stream server socket listening at service if successful.

service can also be an integer port number.

Returns null upon failure.

(Deprecated: )