Class SocketHub
java.lang.Object
|
+----SocketHub
- public class SocketHub
- extends Object
- implements Runnable
- See Also:
- ServM
-
Hsocket
-
-
IH
-
-
PH
-
-
SH
-
-
SocketHub(Socket)
-
Construct a new SocketHub and launch the Thread
-
log(String)
-
-
run()
- Reads the stream, parses the Input until the entry is valid
-
validNick(String, String)
-
Check if the nick is valid and add it in the userlist
Hsocket
private Socket Hsocket
IH
private DataInputStream IH
PH
private PrintStream PH
SH
private Thread SH
SocketHub
public SocketHub(Socket mainSocket)
- Construct a new SocketHub and launch the Thread
run
public void run()
- Reads the stream, parses the Input until the entry is valid
validNick
boolean validNick(String nick,
String comment)
- Check if the nick is valid and add it in the userlist
log
void log(String msg)