J
Joe Van Dyk
Hi,
If I want to establish a new TCP connection every time I need to
access data (the server doesn't want to keep old connetions around),
is there any reason why I can't do something like:
def send_message_and_recv_response
server =3D TCPSocket.new @server_ip, @server_port
server.puts "the message"
result =3D server.recv
end
If I want to establish a new TCP connection every time I need to
access data (the server doesn't want to keep old connetions around),
is there any reason why I can't do something like:
def send_message_and_recv_response
server =3D TCPSocket.new @server_ip, @server_port
server.puts "the message"
result =3D server.recv
end