org.mmbase.module.irc.communication.irc
Class IrcConnection

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.mmbase.module.irc.communication.irc.tcpip.TcpipConnection
              |
              +--org.mmbase.module.irc.communication.irc.IrcConnection
All Implemented Interfaces:
CommunicationInterface, java.lang.Runnable
Direct Known Subclasses:
Communication, IrcUser

public class IrcConnection
extends TcpipConnection
implements CommunicationInterface

Eerste opzet : 1 class die connect naar server


Fields inherited from class org.mmbase.module.irc.communication.irc.tcpip.TcpipConnection
comuser, hostname, port, servername
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
IrcConnection(CommunicationUserInterface com)
           
 
Method Summary
 boolean connect(java.lang.String server, java.lang.String name, java.lang.String group, java.lang.String password)
           
 boolean isaccepted()
           
 boolean isloggedin()
           
 void join(IrcChannel channel)
           
 void join(java.lang.String server, java.lang.String channelname, java.lang.String channelkey)
           
 void login()
           
 void nick()
           
 java.lang.String parseMessage(IrcMessage message)
           
 void pass()
           
 void ping(java.lang.String who)
           
 void pong(java.lang.String who, java.lang.String time)
           
 void privmsg(java.lang.String who, java.lang.String line)
           
 void quit()
           
 void receive(java.lang.String msg)
           
 boolean reconnect()
           
 void rejoin()
           
 void send(java.lang.String s)
          called by user
 void send(java.lang.String who, java.lang.String line)
           
 void sendMessage(IrcMessage msg)
           
 void sendPrivate(java.lang.String who, java.lang.String line)
           
 void sendPublic(java.lang.String line)
           
 void stopit()
           
 void user()
           
 
Methods inherited from class org.mmbase.module.irc.communication.irc.tcpip.TcpipConnection
connect, connected, disconnected, haltit, initialize, isconnected, read, receive, received, resumeit, run, send, sleepfor, startit, write
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mmbase.module.irc.communication.CommunicationInterface
isconnected
 

Constructor Detail

IrcConnection

public IrcConnection(CommunicationUserInterface com)
Method Detail

connect

public boolean connect(java.lang.String server,
                       java.lang.String name,
                       java.lang.String group,
                       java.lang.String password)
Specified by:
connect in interface CommunicationInterface

reconnect

public boolean reconnect()
Specified by:
reconnect in interface CommunicationInterface
Overrides:
reconnect in class TcpipConnection

rejoin

public void rejoin()

send

public void send(java.lang.String s)
Description copied from class: TcpipConnection
called by user
Overrides:
send in class TcpipConnection

sendMessage

public void sendMessage(IrcMessage msg)

sendPublic

public void sendPublic(java.lang.String line)
Specified by:
sendPublic in interface CommunicationInterface

sendPrivate

public void sendPrivate(java.lang.String who,
                        java.lang.String line)
Specified by:
sendPrivate in interface CommunicationInterface

send

public void send(java.lang.String who,
                 java.lang.String line)

receive

public void receive(java.lang.String msg)
Overrides:
receive in class TcpipConnection

isaccepted

public boolean isaccepted()
Specified by:
isaccepted in interface CommunicationInterface

isloggedin

public boolean isloggedin()

stopit

public void stopit()
Specified by:
stopit in interface CommunicationInterface
Overrides:
stopit in class TcpipConnection

parseMessage

public java.lang.String parseMessage(IrcMessage message)

pass

public void pass()

nick

public void nick()

user

public void user()

login

public void login()

join

public void join(IrcChannel channel)

join

public void join(java.lang.String server,
                 java.lang.String channelname,
                 java.lang.String channelkey)

ping

public void ping(java.lang.String who)

pong

public void pong(java.lang.String who,
                 java.lang.String time)

privmsg

public void privmsg(java.lang.String who,
                    java.lang.String line)

quit

public void quit()


MMBase 2001