public SessionFactory(final LoginHelper theLoginHelper)
throws UnknownHostException, Exception
{
this.loginHelper = theLoginHelper;
InetSocketAddress tcpAddress = loginHelper.getTcpServerAddress();
this.tcpClient = new NettyTCPClient(tcpAddress);
InetSocketAddress udpAddress = loginHelper.getUdpServerAddress();
if (null == udpAddress)
{
udpClient = null;
}