In message "[ruby-talk:00214] TCPsocket.recvfrom in use"
on 99/01/25, Julian Fondren <julian / imaji.net> writes:
|Could I have an example of TCPsocket.recvfrom in use? It doesn't appear to
|be used at all in ruby/lib or in the samples. Thank you.
It should be something like this:
s = TCPsocket.open(host, port)
data, addr = s.recvfrom(25, Socket::MSG_PEEK)