Maven module :un.protocol : protocol-irc :
Class : un.protocol.irc.IRCClient
Extends/Implements : -
Subclasses : -

author  AurĂ©lien Lombardo


Variables : -
Functions : IRCClient, IRCClient, IRCClient, IRCClient, connect, join, pong, send, receive, close




Create an irc client on default port (7).
param  host
throws  IOException
public void IRCClient (Chars host)


Create an irc client on default port (7).
param  address
throws  IOException
public void IRCClient (IPAddress address)


Create an irc client.
param  host
param  port
throws  IOException
public void IRCClient (Chars host, int port)


Create an irc client.
param  address
param  port
throws  IOException
public void IRCClient (IPAddress address, int port)


Connect to the server with the nick parameter
param  nick
return
throws  IOException
public boolean connect (Chars nick)


Join the channel
param  channel
throws  IOException
public void join (Chars channel)


Answer a pong after a ping request
throws  IOException
public void pong ()


Send datas and wait for echo response.
param  data byte array to send.
return  byte[] should contain the same values that was send.
throws  IOException
public void send (Chars data)


Get message from the server
return
throws  IOException
public Chars receive ()


Close IRC client.
throws  IOException
public void close ()