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"); }
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"); }
protected void SendPacket(BinaryMemoryWriter writer, int port) { this.SendPacket(writer.GetData(), port); }
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"; }
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"; }