K
kingsley
Where do I report this bug?
Only happens on windows platform:
causes some error ot lock that doesnt occur on Unices
require \'socket\'
require \'thread\'
sock = TCPSocket.new(\'ancient.anguish.org\',2222) # login name is :
guest (no password needed)
t1 = Thread.new do
if line = gets
sock.write line
end
end
t2 = Thread.new do
loop do
ch = sock.recv(1)
putc ch
end
end
t1.join
t2.join
Thanks
Kingsley
Only happens on windows platform:
causes some error ot lock that doesnt occur on Unices
require \'socket\'
require \'thread\'
sock = TCPSocket.new(\'ancient.anguish.org\',2222) # login name is :
guest (no password needed)
t1 = Thread.new do
if line = gets
sock.write line
end
end
t2 = Thread.new do
loop do
ch = sock.recv(1)
putc ch
end
end
t1.join
t2.join
Thanks
Kingsley