Example #1
0
 public static void HandleTest(StateObject state)
 {
     Console.WriteLine("HandleTest has called");
     state.WorkSocket.Send(BitConverter.GetBytes(1));
     state.WorkSocket.Send(Encoding.UTF8.GetBytes("Server have received test data"));
     state.WorkSocket.Disconnect(true);
     return;
 }
Example #2
0
 public void Call(StateObject state)
 {
     if (!handlers.ContainsKey(state.CommandType))
     {
         DefaultHandle(state);
     }
     handlers[state.CommandType](state);
 }
Example #3
0
        public static void DefaultHandle(StateObject state)
        {

        }
Example #4
0
 public static void HandledSendHashData(StateObject state)
 {
     Console.WriteLine("HandledReset has called");
 }