X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-vnc-client.git/blobdiff_plain/46a087a65293d806d15601a775010670baecd066..3c65587545229ba80c5019747a6225f740856134:/SocketWrapper.java diff --git a/SocketWrapper.java b/SocketWrapper.java index 2920732..e488b28 100644 --- a/SocketWrapper.java +++ b/SocketWrapper.java @@ -37,6 +37,7 @@ public abstract class SocketWrapper extends Socket { protected SocketWrapper(Socket delegate) throws SocketException { super(new WrappingSocketImpl(delegate)); this.delegate = delegate; + System.out.println("Creating SocketWrapper $Rev$"); } public SocketChannel getChannel() { @@ -136,6 +137,7 @@ public abstract class SocketWrapper extends Socket { } protected void close() throws IOException { + System.out.println("Calling delegate.close"); delegate.close(); } @@ -240,6 +242,11 @@ public abstract class SocketWrapper extends Socket { } } + public void close() throws IOException { + System.out.println("Calling SocketWrapper.delegate.close"); + delegate.close(); + } + public boolean equals(Object obj) { if (!(obj instanceof SocketWrapper)) return false; SocketWrapper that = (SocketWrapper)obj; @@ -249,4 +256,7 @@ public abstract class SocketWrapper extends Socket { public int hashCode() { return delegate.hashCode() ^ 0x01010101; } + public String toString() { + return ""; + } } \ No newline at end of file