public void HandshakeCompleted(IXSocketProtocol protocol)
 {
 }
 public void Connected(IXSocketProtocol protocol)
 {
 }
Example #3
0
 public void OnIncomingMessage(IXSocketProtocol protocol, IMessage message)
 {
     InPerSecCounter.IncrementBy(1);
 }
Example #4
0
 public void OnOutgoingMessage(IXSocketProtocol protocol, IMessage message)
 {
     OutPerSecCounter.IncrementBy(1);
 }
Example #5
0
 public void Disconnected(IXSocketProtocol protocol)
 {
     //Composable.GetExport<IXLogger>().Information("Client disconnected");
 }
Example #6
0
 public void HandshakeCompleted(IXSocketProtocol protocol)
 {
 }
Example #7
0
 public void Connected(IXSocketProtocol protocol)
 {
     //Composable.GetExport<IXLogger>().Information("New connection from {c}",protocol.Socket.RemoteIpAddress);
 }
 public void OnOutgoingMessage(IXSocketProtocol protocol, IMessage message)
 {
     Console.WriteLine("Out {0}", message);
 }
 public void OnIncomingMessage(IXSocketProtocol protocol, IMessage message)
 {
     Console.WriteLine("In {0}", message);
 }
 public void Connected(IXSocketProtocol protocol)
 {
 }
 //Outgoing textmessage
 public override ITextArgs OnSend(IXSocketProtocol protocol, ITextArgs e)
 {
     Console.WriteLine("OUT " + e.data);
     return(base.OnSend(protocol, e));
 }