projects
/
org.ibex.io.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f6a081b
)
explicitly close sockets
author
adam
<adam@megacz.com>
Thu, 23 Sep 2004 07:04:41 +0000
(07:04 +0000)
committer
adam
<adam@megacz.com>
Thu, 23 Sep 2004 07:04:41 +0000
(07:04 +0000)
darcs-hash:
20040923070441
-5007d-
106f7fbb9524f7729507f9b91f794dd010de4079
.gz
src/org/ibex/io/Connection.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/io/Connection.java
b/src/org/ibex/io/Connection.java
index
bb7907b
..
4233315
100644
(file)
--- a/
src/org/ibex/io/Connection.java
+++ b/
src/org/ibex/io/Connection.java
@@
-10,6
+10,7
@@
public class Connection extends Stream {
private final Socket s;
public final String vhost;
public Connection(Socket s, String vhost) { super(s); this.vhost = vhost; this.s = s; }
private final Socket s;
public final String vhost;
public Connection(Socket s, String vhost) { super(s); this.vhost = vhost; this.s = s; }
+ public void close() { try{s.close();}catch(Exception e){throw new StreamException(e);} super.close(); }
public int getLocalPort() { return s.getLocalPort(); }
public int getRemotePort() { return s.getPort(); }
public InetAddress getRemoteAddress() { return ((InetSocketAddress)s.getRemoteSocketAddress()).getAddress(); }
public int getLocalPort() { return s.getLocalPort(); }
public int getRemotePort() { return s.getPort(); }
public InetAddress getRemoteAddress() { return ((InetSocketAddress)s.getRemoteSocketAddress()).getAddress(); }