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:
6f988f2
)
added Connection.getSocket
author
adam
<adam@megacz.com>
Fri, 18 Mar 2005 09:11:57 +0000
(09:11 +0000)
committer
adam
<adam@megacz.com>
Fri, 18 Mar 2005 09:11:57 +0000
(09:11 +0000)
darcs-hash:
20050318091157
-5007d-
2cd8d37ac3a6f031aea5eb5083895f6de3fd9a0e
.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
c6d333f
..
5c8d148
100644
(file)
--- a/
src/org/ibex/io/Connection.java
+++ b/
src/org/ibex/io/Connection.java
@@
-13,6
+13,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 Socket getSocket() { return s; }
public void close() { try{s.close();}catch(Exception e){throw new Stream.StreamException(e);} super.close(); }
public int getLocalPort() { return s.getLocalPort(); }
public InetAddress getLocalAddress() { return ((InetSocketAddress)s.getLocalSocketAddress()).getAddress(); }
public void close() { try{s.close();}catch(Exception e){throw new Stream.StreamException(e);} super.close(); }
public int getLocalPort() { return s.getLocalPort(); }
public InetAddress getLocalAddress() { return ((InetSocketAddress)s.getLocalSocketAddress()).getAddress(); }