diff options
author | Dor Bivas <dor1_b@walla.com> | 2014-03-29 17:15:26 +0300 |
---|---|---|
committer | Dor Bivas <dor1_b@walla.com> | 2014-03-29 17:15:26 +0300 |
commit | 3e6edd995e1e705f6470f77bfe07c914511e2f49 (patch) | |
tree | c05477ec7e2dabaffdf6ad123fbff5e77d66119d /src/Server/ChatServer.java | |
parent | d008f730a318bc1daf603ac6520293c808a054b2 (diff) |
Chat: deleted white spaces prettify the code, and fixm's and unneeded
notes and tasks.
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>(); |