Beispiel #1
0
 //AsyncCallback cc = new AsyncCallback(ConnectCallback);
 void ConnectCallback(IAsyncResult result)
 {
     try
     {
         network_socket me = (network_socket)result.AsyncState;
         me.EndConnect(result);
         System.Diagnostics.Debug.WriteLine("blah");
         FirstReceive();
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.ToString());
     }
 }
Beispiel #2
0
 network_client(string address, int port)
 {
     ns = new network_socket(address, port);
 }