private IPEndPoint InitialiseSockets(IPAddress localIPAddress, int localPort)
{
try
{
IPEndPoint localEndPoint = null;
UdpClient stunConn = null;
localEndPoint = new IPEndPoint(localIPAddress, localPort);
stunConn = new UdpClient(localEndPoint);
m_stunConn = stunConn;
Thread listenThread = new Thread(new ThreadStart(Listen));
listenThread.Start();
return localEndPoint;
}
catch(Exception excp)
{
logger.Error("Exception STUNListener InitialiseSockets. " + excp.Message);
throw excp;
}
}