class LogSimulator::SocketConnetion

Attributes

socket[R]

Public Class Methods

new(host,port) click to toggle source
# File lib/socket_connetion.rb, line 6
def initialize (host,port)
  begin
    @socket = TCPSocket.new(host,port)
  rescue Exception => _
    @socket = nil
  end
end