- Method connect
int(0..1) connect(string address, int|string port)
Establish an UDP connection.
This function connects an UDP socket previously created with Stdio.UDP() to a remote socket. The address is the IP name or number for the remote machine.
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