Skip to content

Commit

Permalink
TcpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
hrefhref committed Feb 17, 2008
1 parent 8da5260 commit 8e8442d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/irc_cat.rb
Expand Up @@ -8,4 +8,5 @@
require 'irc_cat/version'
require 'irc_cat/bot'
require 'irc_cat/tcp_server'
require 'irc_cat/tcp_client'
require 'irc_cat/http_server'
8 changes: 8 additions & 0 deletions lib/irc_cat/tcp_client.rb
@@ -0,0 +1,8 @@
module IrcCat
class TcpClient
def self.notify(ip,port,message)
socket = TCPSocket.open(ip,port)
socket.write(message + "\r\n")
end
end
end

0 comments on commit 8e8442d

Please sign in to comment.