Changeset 233
- Timestamp:
- Nov 12, 2007, 12:09:45 AM (17 years ago)
- Location:
- trunk/vnc/vnc_javasrc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vnc/vnc_javasrc/RfbProto.java
r66 r233 209 209 210 210 if (viewer.socketFactory == null) { 211 System.out.println("Null socketFactory"); 211 212 sock = new Socket(host, port); 212 213 } else { … … 214 215 Class factoryClass = Class.forName(viewer.socketFactory); 215 216 SocketFactory factory = (SocketFactory)factoryClass.newInstance(); 217 System.out.println("Using socketFactory " + factory); 216 218 if (viewer.inAnApplet) 217 219 sock = factory.createSocket(host, port, viewer); … … 237 239 sock.close(); 238 240 closed = true; 239 System.out.println("RFB socket closed ");241 System.out.println("RFB socket closed " + sock); 240 242 if (rec != null) { 241 243 rec.close(); -
trunk/vnc/vnc_javasrc/SocketWrapper.java
- Property svn:keywords set to Rev
r143 r233 38 38 super(new WrappingSocketImpl(delegate)); 39 39 this.delegate = delegate; 40 System.out.println("Creating SocketWrapper $Rev$"); 40 41 } 41 42 … … 137 138 138 139 protected void close() throws IOException { 140 System.out.println("Calling delegate.close"); 139 141 delegate.close(); 140 142 } … … 241 243 } 242 244 245 public void close() throws IOException { 246 System.out.println("Calling SocketWrapper.delegate.close"); 247 delegate.close(); 248 } 249 243 250 public boolean equals(Object obj) { 244 251 if (!(obj instanceof SocketWrapper)) return false; … … 250 257 return delegate.hashCode() ^ 0x01010101; 251 258 } 259 public String toString() { 260 return "<SocketWrapper " + super.toString() + "(delegating to " + delegate.toString() + ")" + ">"; 261 } 252 262 }
Note: See TracChangeset
for help on using the changeset viewer.