private void GetNewPOC(IPEndPoint from, WebRTCCommons.CustomAwaiter <byte[]> awaiter)
{
BeginInvoke((Action <IPEndPoint, WebRTCCommons.CustomAwaiter <byte[]> >)((origin, a) =>
{
SessionForm f = new SessionForm();
if (StunServersInUse)
{
f.SetStunServers(false, StunServers);
}
f.FormClosing += SessionFormClosing;
f.Show(this);
userForms.Add("/" + f.Value.ToString(), f);
string content = htmlpage.Replace("/*{{{ICESERVERS}}}*/", "").Replace("{{{OFFER_URL}}}", origin.Address.ToString() + ":" + mServer.Port.ToString() + "/" + f.Value.ToString());
string header = "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nConnection: close\r\nContent-Length: " + content.Length.ToString() + "\r\n\r\n";
a.SetComplete(UTF8Encoding.UTF8.GetBytes(header + content));
}), from, awaiter);
}