Esempio n. 1
0
 private void HandleError(Exception e, SocketManager socket)
 {
     socket.Send("<file type='error'><msg>Server handling message raised exception: " + e.Message + "</msg></file");
     Console.WriteLine("Recieced error: {0}\n{1}\n...while handling message. Sent error back to sender.", e.Message, e.StackTrace);
 }
Esempio n. 2
0
 // begins accepting new messages asynchronously
 // will continue to accept new messages ad infinitum
 public void StartAsyncReceive(SocketManager socket)
 {
     socket.AsyncReceiveXml(endAsyncReceiveXml, HandleSocketDeath);
 }
Esempio n. 3
0
 // what to do when a socket dies
 protected abstract void HandleSocketDeath(SocketManager socket);