class Crirc::Network::Client
- Crirc::Network::Client
- Reference
- Object
Included Modules
Defined in:
crirc/network/client.crConstructors
-
.new(nick : String, ip : String, port = nil.as(UInt16 | ::Nil), ssl : Bool = true, user = nil, realname = nil, domain : Nil | String = nil, pass : Nil | String = nil, irc_server : Nil | String = nil, read_timeout : UInt16 = 120_u16, write_timeout : UInt16 = 5_u16, keepalive : Bool = true)
default port is 6667 or 6697 if ssl is true
Instance Method Summary
-
#close
End the connection
-
#connect
Connect to the server
- #domain : String | Nil
-
#gets
Wait and fetch the next incoming message
- #ip : String
- #irc_server : String | Nil
- #keepalive : Bool
- #nick : String
- #pass : String | Nil
- #port : UInt16
-
#puts(data)
Send a message to the server
- #read_timeout : UInt16
- #realname : String
- #socket
- #ssl : Bool
-
#start(&)
Start a new Controller::Client binded to the current object
- #user : String
- #write_timeout : UInt16
Constructor Detail
def self.new(nick : String, ip : String, port = nil.as(UInt16 | ::Nil), ssl : Bool = true, user = nil, realname = nil, domain : Nil | String = nil, pass : Nil | String = nil, irc_server : Nil | String = nil, read_timeout : UInt16 = 120_u16, write_timeout : UInt16 = 5_u16, keepalive : Bool = true)
#
default port is 6667 or 6697 if ssl is true