org.mmbase.module.irc.communication.irc.tcpip
Class TcpipConnection

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

public class TcpipConnection
extends java.lang.Thread


Field Summary
 CommunicationUserInterface comuser
           
 java.lang.String hostname
           
 int port
           
 java.lang.String servername
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TcpipConnection()
           
 
Method Summary
 boolean connect(java.lang.String servername, int port)
           
 void connected()
           
 void disconnected()
           
 void haltit()
           
 void initialize(CommunicationUserInterface comuser)
           
 boolean isconnected()
           
 java.lang.String read()
           
 void receive()
          called by thread
 void receive(java.lang.String line)
           
 void received()
          called by user
 boolean reconnect()
           
 void resumeit()
           
 void run()
           
 void send()
          called by thread
 void send(java.lang.String s)
          called by user
 void sleepfor(long time)
           
 void startit()
           
 void stopit()
           
 void write(java.lang.String s)
           
 
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
 

Field Detail

comuser

public CommunicationUserInterface comuser

hostname

public java.lang.String hostname

servername

public java.lang.String servername

port

public int port
Constructor Detail

TcpipConnection

public TcpipConnection()
Method Detail

initialize

public void initialize(CommunicationUserInterface comuser)

startit

public void startit()

run

public void run()
Overrides:
run in class java.lang.Thread

connect

public boolean connect(java.lang.String servername,
                       int port)

reconnect

public boolean reconnect()

sleepfor

public void sleepfor(long time)
              throws java.lang.InterruptedException

connected

public void connected()

disconnected

public void disconnected()

isconnected

public boolean isconnected()

write

public void write(java.lang.String s)
           throws java.io.IOException

send

public void send()
called by thread

send

public void send(java.lang.String s)
called by user

read

public java.lang.String read()
                      throws java.io.IOException

receive

public void receive()
called by thread

received

public void received()
called by user

receive

public void receive(java.lang.String line)

haltit

public void haltit()

resumeit

public void resumeit()

stopit

public void stopit()


MMBase 2001