Bind

SUB Bind ( Port AS Integer )

Binds a socket to a port, so the object can start sending and receiving data. Port value must be a number between 0 and 65535:

This function can be used when status property is zero (inactive) or lesser than zero. Otherwise, an error will raise