Method _Stdio.UDP()->connect()
class_Stdio.UDP
- Method
connect
int(1)connect(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.- Throws
Throws an error on failure. errno() provides further details about the error.
- 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