Method _Stdio.UDP()->connect()
- Method
connect
boolconnect(stringaddress,int|stringport)- Description
Establish an UDP connection.
This function connects an UDP socket previously created with Stdio.UDP() to a remote socket. The
addressis the IP name or number for the remote machine.- Returns
Returns
1on success,0(zero) otherwise.- Note
If the socket is in nonblocking mode, you have to wait for a write or close callback before you know if the connection failed or not.
- See also