diff options
author | Dor Bivas <dor1_b@walla.com> | 2014-01-18 18:19:36 +0200 |
---|---|---|
committer | Dor Bivas <dor1_b@walla.com> | 2014-01-18 18:19:36 +0200 |
commit | bab1f5e92dcc4e77ab1a9fa95a91b816d385b457 (patch) | |
tree | f59504d54573e2f0aa7c0d238fdc28071fe228fb /src/Server/Connection.java | |
parent | 4ba8e7836f0f25a05f53a9a3754baaa5b7084059 (diff) |
server: print privmsg to all clients
* Connection.getClieont
* Privmsg handler uses it to print the message to all connections
* Unrelated: remove connection from list on shutdown.
Diffstat (limited to 'src/Server/Connection.java')
-rw-r--r-- | src/Server/Connection.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Server/Connection.java b/src/Server/Connection.java index 92869f1..cdb02b8 100644 --- a/src/Server/Connection.java +++ b/src/Server/Connection.java @@ -48,8 +48,16 @@ public class Connection extends Thread this.soc = soc; } + public Client getClient() + { + return this.client; + } + public void shutdown() { + + ChatServer.server.connectionRemove(this); + try { if (!soc.isClosed()) |