socket.setKeepAlive(true);
} catch (final Throwable t) {
// for 1.2 VMs that do not support the setKeepAlive
}
socket.setTcpNoDelay(true);
output = new SmartObjectOutputStream(new BufferedOutputStream(
socket.getOutputStream()));
output.flush();
input = new SmartObjectInputStream(new BufferedInputStream(socket
.getInputStream()));
}