Gambas Documentation - /comp/gb.net/udpsocket/bind

/comp/gb.net/udpsocket/bind

# UdpSocket.Bind (gb.net)

Sub Bind ( )

Bind a socket so the object can start sending and receiving data.

If Path is defined, then the socket is a local socket binded to it. Otherwise the socket is an internet socket binded the port specified by the Port property.

This function can be used when the Status property is zero (inactive) or lesser than zero. Otherwise, an error is raised.