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

Version:
$Id: IrcConnection.java,v 1.5 2002/03/04 14:07:47 pierre Exp $
Author:
vpro

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)
Parameters:
com - Description of Parameter
Method Detail

isaccepted

public boolean isaccepted()
Specified by:
isaccepted in interface CommunicationInterface
Returns:
Description of the Returned Value

isloggedin

public boolean isloggedin()
Returns:
Description of the Returned Value

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
Parameters:
server - Description of Parameter
name - Description of Parameter
group - Description of Parameter
password - Description of Parameter
Returns:
Description of the Returned Value

reconnect

public boolean reconnect()
Specified by:
reconnect in interface CommunicationInterface
Overrides:
reconnect in class TcpipConnection
Returns:
Description of the Returned Value

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
Parameters:
s - Description of Parameter

sendMessage

public void sendMessage(IrcMessage msg)
Parameters:
msg - Description of Parameter

sendPublic

public void sendPublic(java.lang.String line)
Specified by:
sendPublic in interface CommunicationInterface
Parameters:
line - Description of Parameter

sendPrivate

public void sendPrivate(java.lang.String who,
                        java.lang.String line)
Specified by:
sendPrivate in interface CommunicationInterface
Parameters:
who - Description of Parameter
line - Description of Parameter

send

public void send(java.lang.String who,
                 java.lang.String line)
Parameters:
who - Description of Parameter
line - Description of Parameter

receive

public void receive(java.lang.String msg)
Overrides:
receive in class TcpipConnection
Parameters:
msg - Description of Parameter

stopit

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

parseMessage

public java.lang.String parseMessage(IrcMessage message)
Parameters:
message - Description of Parameter
Returns:
Description of the Returned Value

pass

public void pass()

nick

public void nick()

user

public void user()

login

public void login()

join

public void join(IrcChannel channel)
Parameters:
channel - Description of Parameter

join

public void join(java.lang.String server,
                 java.lang.String channelname,
                 java.lang.String channelkey)
Parameters:
server - Description of Parameter
channelname - Description of Parameter
channelkey - Description of Parameter

ping

public void ping(java.lang.String who)
Parameters:
who - Description of Parameter

pong

public void pong(java.lang.String who,
                 java.lang.String time)
Parameters:
who - Description of Parameter
time - Description of Parameter

privmsg

public void privmsg(java.lang.String who,
                    java.lang.String line)
Parameters:
who - Description of Parameter
line - Description of Parameter

quit

public void quit()


MMBase build 1.6.5.20030923