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 java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| 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 |
IrcConnection
public IrcConnection(CommunicationUserInterface com)
- Parameters:
com - Description of Parameter
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 Parametername - Description of Parametergroup - Description of Parameterpassword - 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 Parameterline - Description of Parameter
send
public void send(java.lang.String who,
java.lang.String line)
- Parameters:
who - Description of Parameterline - 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 Parameterchannelname - Description of Parameterchannelkey - 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 Parametertime - Description of Parameter
privmsg
public void privmsg(java.lang.String who,
java.lang.String line)
- Parameters:
who - Description of Parameterline - Description of Parameter
quit
public void quit()
MMBase build 1.6.5.20030923