Sha256: ad09b3582fd0d88a948d7718d6f66f8baaa95151fc7ba2d25281ab323c263eca

Contents?: true

Size: 249 Bytes

Versions: 6

Compression:

Stored size: 249 Bytes

Contents

require 'socket'

module LogSimulator
  class SocketConnetion
    attr_reader :socket
    def initialize (host,port)
      begin
        @socket = TCPSocket.new(host,port)
      rescue Exception => _
        @socket = nil
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
log_simulator-0.2.1 lib/socket_connetion.rb
log_simulator-0.2.0 lib/socket_connetion.rb
log_simulator-0.1.3 lib/socket_connetion.rb
log_simulator-0.1.2 lib/socket_connetion.rb
log_simulator-0.1.1 lib/socket_connetion.rb
log_simulator-0.1.0 lib/socket_connetion.rb