Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サーバーに接続しているrubyソケットクライアントがあり、いつでも接続を閉じます。これが私のコードです:
@conn = TCPSocket.new address[0], address[1] while xml = @conn.recv(4096) // do something end
ここでソケットを検出するにはどうすればよいですか?