sock = new Socket(host, port);
} else {
try {
Class factoryClass = Class.forName(viewer.socketFactory);
SocketFactory factory = (SocketFactory)factoryClass.newInstance();
sock = new Socket(host, port);
} else {
try {
Class factoryClass = Class.forName(viewer.socketFactory);
SocketFactory factory = (SocketFactory)factoryClass.newInstance();