Skip to content

Std socket socket bind

std:std.socket.Socket.Bind

Function Bind:Socket( service:String,flags:SocketFlags=SocketFlags.Passive )#
Function Bind:Socket( hostname:String,service:String )#

Creates a datagram server socket.

Returns a new datagram server socket bound to 'service' if successful.

service can also be an integer port number.

Returns null upon failure.

(Deprecated: )