From: Francis Cianfrocca Date: 2006-10-16T21:48:34+09:00 Subject: Re: UDP Server ------=_Part_39844_22404549.1161002911874 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/15/06, Mohammad --- wrote: > > Alright I've been trying to set up a UDP server for my "Game", the > "Client" is in python, but I want a ruby server. I tried some code from > the Ruby book, but I wasn't able to get it to work. If someone could > please help me out with starting the server. BTW: port is 5555 > > -- > Posted via http://www.ruby-forum.com/. > > require 'socket' u = UDPsocket.new u.bind( "127.0.0.1", 5555 ) while msg = u.recv(4096) p msg end ------=_Part_39844_22404549.1161002911874--