Example #1
0
 private void handlerGetPackage(UDPEvent args)
 {
     /*CommandBaseUDP command = this.parseCommand(args.Bytes);
      * switch (command.Type)
      * {
      *  case CommandTypeEnum.WantMakeLink:
      *      CommandWantMakeLinkUDP cwml = (CommandWantMakeLinkUDP)command;
      *      CommandMakeLinkUDP cml = new CommandMakeLinkUDP(cwml.Sid);
      *      UCareUDP nClient = this.CreateClient(args.GetFromEndPoint.Address.ToString(), args.GetFromEndPoint.Port);
      *      nClient.Send(cml);
      *      break;
      *  case CommandTypeEnum.MakeLink:
      *      args.Client.ChangeEndPoint(args.GetFromEndPoint);
      *      CommandMakeLinkUDP cml2 = new CommandMakeLinkUDP(0);
      *  //    args.Client.Send(cml2);
      *      break;
      * }
      * command = null;*/
 }
Example #2
0
 private void handlerSendError(UDPEvent args)
 {
     _logger.Error(args.ToString());
 }
Example #3
0
 private void handlerConnection(UDPEvent args)
 {
     _logger.Info(args.ToString());
 }