port = p;
if (viewer.socketFactory == null) {
+ System.out.println("Null socketFactory");
sock = new Socket(host, port);
} else {
try {
Class factoryClass = Class.forName(viewer.socketFactory);
SocketFactory factory = (SocketFactory)factoryClass.newInstance();
+ System.out.println("Using socketFactory " + factory);
if (viewer.inAnApplet)
sock = factory.createSocket(host, port, viewer);
else
try {
sock.close();
closed = true;
- System.out.println("RFB socket closed");
+ System.out.println("RFB socket closed " + sock);
if (rec != null) {
rec.close();
rec = null;