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, port = nil.as(UInt16 | ::Nil), ssl = true, user = nil, realname = nil, domain = nil, pass = nil, irc_server = nil, read_timeout = 120_u16, write_timeout = 5_u16, keepalive = 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 target server


[View source]
def domain : String? #

[View source]
def gets #

Wait and fetch the next incoming message


[View source]
def ip : String #

[View source]
def irc_server : String? #

[View source]
def keepalive : Bool #

[View source]
def nick : String #

[View source]
def pass : String? #

[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]