Class SocketHub

java.lang.Object
   |
   +----SocketHub

public class SocketHub
extends Object
implements Runnable
See Also:
ServM

Variable Index

 o Hsocket
 o IH
 o PH
 o SH

Constructor Index

 o SocketHub(Socket)
Construct a new SocketHub and launch the Thread

Method Index

 o log(String)
 o run()
Reads the stream, parses the Input until the entry is valid
 o validNick(String, String)
Check if the nick is valid and add it in the userlist

Variables

 o Hsocket
 private Socket Hsocket
 o IH
 private DataInputStream IH
 o PH
 private PrintStream PH
 o SH
 private Thread SH

Constructors

 o SocketHub
 public SocketHub(Socket mainSocket)
Construct a new SocketHub and launch the Thread

Methods

 o run
 public void run()
Reads the stream, parses the Input until the entry is valid

 o validNick
 boolean validNick(String nick,
                   String comment)
Check if the nick is valid and add it in the userlist

 o log
 void log(String msg)