From: Jamal Soueidan Date: 2008-10-17T19:09:03+09:00 Subject: Re: socket recv or gets? Robert Klemme wrote: > On 17.10.2008 09:40, Jamal Soueidan wrote: >> print out the message? >> >> Why? :D > > See documentation. #gets tries to read a line (i.e. until it sees a line > terminator). Also, I believe recv also works with UDP while I am not > sure about gets. > > Cheers > > robert Hmm, I looked before at documentation and they wrote... "A separator of nil reads the entire contents..." so I did :) @data = gets() But my code stops after that and wouldn't continue? even though gets(nil) is the same, I also tried that, didn't work. -- Posted via http://www.ruby-forum.com/.