InetAddress localHost = InetAddress.getLocalHost();
InetAddress remoteHost = InetAddress.getByName(host);
itsSocketHandler =
Constants.TCP.equals(itsConstants.getProperty(
Constants.TRANSPORT))
? new TCPSocketHandler(
localHost, localPortNr, remoteHost, portNr)
: new UDPSocketHandler(
localHost, localPortNr, remoteHost, portNr);
} catch (UnknownHostException e) {