class Crirc::Network::Client

Included Modules

Defined in:

crirc/network/client.cr

Constructors

Instance Method Summary

Instance methods inherited from module Crirc::Network::Network

gets gets, puts(data) puts

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


[View source]

Instance Method Detail

def close #

End the connection


[View source]
def connect #

Connect to the server


[View source]
def domain : String | Nil #

[View source]
def gets #

Wait and fetch the next incoming message


[View source]
def ip : String #

[View source]
def irc_server : String | Nil #

[View source]
def keepalive : Bool #

[View source]
def nick : String #

[View source]
def pass : String | Nil #

[View source]
def port : UInt16 #

[View source]
def puts(data) #

Send a message to the server


[View source]
def read_timeout : UInt16 #

[View source]
def realname : String #

[View source]
def socket #

[View source]
def ssl : Bool #

[View source]
def start(&) #

Start a new Controller::Client binded to the current object


[View source]
def user : String #

[View source]
def write_timeout : UInt16 #

[View source]