Ruby UDPSocket Functions
EditRocket provides the following information on UDPSocket functions in the Ruby source code builder.
bind(host, port) -
connect(host, port) -
recvfrom_nonblock(maxlen) - Receives up to maxlen bytes from udpsocket using recvfrom(2) after O_NONBLOCK is set for the underlying file descriptor. flags is zero or more of the MSG_ options. The first element of the results, mesg, is the data received. The second element, sender_inet_addr, is an array to represent the sender address.
send(mesg, flags, *rest) -