close()
public
Close the connection.
If this is an instance returned by #open_server, then this stops listening
for new connections
altogether. If this is an instance returned by #open or by #accept, then it
closes this particular client-server session.
Show source
def close
if @socket
@socket.close
@socket = nil
end
end