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:
4ff117c
)
fixed a bug that left sockets in the CLOSE_WAIT state
author
adam
<adam@megacz.com>
Fri, 10 Sep 2004 22:05:29 +0000
(22:05 +0000)
committer
adam
<adam@megacz.com>
Fri, 10 Sep 2004 22:05:29 +0000
(22:05 +0000)
darcs-hash:
20040910220529
-5007d-
f04b0156f27c320a1a22bb897136cb745fb7cdb5
.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
4233315
..
bb7907b
100644
(file)
--- a/
src/org/ibex/io/Connection.java
+++ b/
src/org/ibex/io/Connection.java
@@
-10,7
+10,6
@@
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(); }