[ruby-talk:00217] Re: TCPsocket.recvfrom in use

From: matz@... (Yukihiro Matsumoto)
Date: 1999-01-25 15:19:40 UTC
List: ruby-talk #217
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)

In This Thread

Prev Next