예제 #1
0
        public override void Init()
        {
            BinaryMemoryWriter writer = new BinaryMemoryWriter();

            writer.Writer.Write("Hello");
            this.SendPacket(writer, this.PingPort);
        }
예제 #2
0
        public override string RecievePacket(byte[] data, IPEndPoint sender)
        {
            BinaryMemoryWriter writer = new BinaryMemoryWriter();

            writer.Writer.Write("Stop It");
            byte[] data2 = writer.GetData();
            for (int i = 0; i < 50; i++)
            {
                this.SendPacket(data2, sender.Port);
            }
            return("Sent it right back, leave me alone");
        }
예제 #3
0
        public override string RecievePacket(byte[] data, IPEndPoint sender)
        {
            BinaryMemoryWriter writer = new BinaryMemoryWriter();

            writer.Writer.Write("Stop It");
            byte[] data2 = writer.GetData();
            for (int i = 0; i < 10; i++)
            {
                this.SendPacket(data2, this.Target);
            }
            return("Sent it right on, munch on that");
        }
예제 #4
0
 protected void SendPacket(BinaryMemoryWriter writer, int port)
 {
     this.SendPacket(writer.GetData(), port);
 }
예제 #5
0
 protected void SendPacket(BinaryMemoryWriter writer, int port)
 {
     this.SendPacket(writer.GetData(), port);
 }
예제 #6
0
 public override string RecievePacket(byte[] data, IPEndPoint sender)
 {
     BinaryMemoryWriter writer = new BinaryMemoryWriter();
     writer.Writer.Write("Stop It");
     byte[] data2 = writer.GetData();
     for (int i = 0; i < 50; i++)
     {
         this.SendPacket(data2, sender.Port);
     }
     return "Sent it right back, leave me alone";
 }
예제 #7
0
 public override string RecievePacket(byte[] data, IPEndPoint sender)
 {
     BinaryMemoryWriter writer = new BinaryMemoryWriter();
     writer.Writer.Write("Stop It");
     byte[] data2 = writer.GetData();
     for (int i = 0; i < 10; i++)
     {
         this.SendPacket(data2, this.Target);
     }
     return "Sent it right on, munch on that";
 }
예제 #8
0
 public override void Init()
 {
     BinaryMemoryWriter writer = new BinaryMemoryWriter();
     writer.Writer.Write("Hello");
     this.SendPacket(writer, this.PingPort);
 }