From: Lee youser Date: 2008-11-27T22:42:55+09:00 Subject: Problem of UDPSocket on Windows ------=_Part_39263_12603042.1227793669383 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, All: I beg for your helps, my trouble as follow: Background: Use UDP socket to implement an C/S module, Client send messages and Server receive these messages and print them.Client run on Linux(RHEL 5.1) and Server run on Windows(XP).Thetwo computers are in LAN. Problem: When client send a message,the server will receive this message after 4-5 seconds passed.It is a terrible delay! Is there someone could tell me why? Is it a limitation on ruby UDPSocket(for Windows)? PS: When the Server run on linux and the Client run on windows, the server can receive messages immediately. I tried to use C++ and Python to implement the Server, and it can receive messages immediately too. server.rb: require 'socket' socket = UDPSocket.new socket.bind("192.168.1.101",6321) loop do msg,sender = socket.recvfrom(1024) p msg end client.rb: require 'socket' socket = UDPSocket.new port = 6321 host = "192.168.1.101" socket.send(ARGV[0],0,host,port) ------=_Part_39263_12603042.1227793669383--