void ConnectionEstablished(Object sender, EventArgs e)
{
f.Invoke((MethodInvoker)delegate { f.print("Connection established"); });
}
That's the code I've been using and printing "Connection established" twice for TCP and once for HTTP.
If you say it's because of the BeginInvoke(new EventHandler(NameserverProcessor_ConnectionEstablished), sender, e); try deleting the whole "If" that has the BeginInvoke(new EventHandler(NameserverProcessor_ConnectionEstablished), sender, e); including everything inside the "if" and add MessageBox.Show("string"); in the procedure.
When the first box appears you click ok and then you will see another box popping up.
Btw besides the ISP blocking problem mentioned somewhere and the fact that the account stays online after internet disconnection 10 secs for HTTP and almost 2 mins for TCP, what's the difference between TCP and HTTP? Any behaviour change or connection speed or messaging latency?