summaryrefslogtreecommitdiff
path: root/src/Server/ChatServer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Server/ChatServer.java')
-rw-r--r--src/Server/ChatServer.java4
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>();