Tom Reilly
2/25/2005 1:41:00 AM
Try and do something similar with a socket, see if that behaves the same
way.
I tried as suggested using the following program from the ruby book
#____________________________________________________________
require 'socket'
$port = 4321
sThread = Thread.start do # run server in a thread
server = UDPSocket.open
server.bind(nil, $port)
2.times { p server.recvfrom(64) }
end
# Connection based client
sock = UDPSocket.open
sock.connect('localhost', $port)
sock.send("connection-based", 0)
sThread.join
# Ad-hoc client
UDPSocket.open.send("ad hoc", 0, 'localhost', $port)
#____________________________________________________________
The program responds with:
["connection-based", ["AF_INET", 1133, "systemax", "127.0.0.1"]]
then hangs forever.
No exceptions.
Again the program responds as expected on the Dell
It would seem there is a problem in socket.so?
Ideas? THanks.