Class Irc::IrcSocket
In: rbot/ircsocket.rb
Parent: Object
Class: JoinMessage Class: PartMessage Class: Plugins Class: KickMessage Class: IrcAuth Class: IRCChannel Class: IrcSocket Class: BotConfig Class: Keywords Class: IrcClient Class: Language Class: PrivMessage Class: UserMessage Class: NoticeMessage Class: IrcBot Class: BasicUserMessage Class: Plugin Class: Keyword Module: Irc

wrapped TCPSocket for communication with the server. emulates a subset of TCPSocket functionality

Methods
connect    flush    gets    new    puts    select    shutdown   
Public Class methods
new(server, port, host)
server:server to connect to
port:IRCd port
host:optional local host to bind to (ruby 1.7+ required)

create a new IrcSocket

Public Instance methods
connect()

open a TCP connection to the server

puts(message)

used to send lines to the remote IRCd message: IRC message to send

gets()

get the next line from the server (blocks)

flush()

flush the TCPSocket

select(timeout)

Wraps Kernel.select on the socket

shutdown(how=2)

shutdown the connection to the server