diff options
Diffstat (limited to 'src/Server/ChatServer.java')
-rw-r--r-- | src/Server/ChatServer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Server/ChatServer.java b/src/Server/ChatServer.java index 363a747..6d58c49 100644 --- a/src/Server/ChatServer.java +++ b/src/Server/ChatServer.java @@ -14,16 +14,20 @@ public class ChatServer public static final int portNum = 6667; public static ChatServer server; + /** removing connection from the iterator. + * @param connection */ public void connectionRemove(Connection con) { this.connections.remove(con); } + /** returning ConnectionIterator. */ public Iterator<Connection> getConnectionIterator() { return this.connections.iterator(); } + /** constructor of the server , building socket , connection list and nicks dictionary.*/ ChatServer() throws IOException { this.service = new ServerSocket(portNum); this.connections = new LinkedList<Connection>(); |