Module: IRC::Handlers::Socket

Defined in:
lib/irc-qik-bot/handlers/irc-handlers-socket.rb

Class Method Summary collapse

Class Method Details

.tcp_connect(server, port) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/irc-qik-bot/handlers/irc-handlers-socket.rb', line 9

def self.tcp_connect(server, port)
  begin
    return TCPSocket.open server, port
  rescue
    return nil
  end
end