Beispiel #1
0
		public static byte[] CreatePacket(byte version, byte command, System.Net.IPAddress host, int port)
		{
			var packet = new Socks4Packet() { Version = version, Command = command, IPAddress = host, Port = port };
			return packet.Serialize();
		}
Beispiel #2
0
		public static byte[] CreatePacket(byte command) 
		{
			var packet = new Socks4Packet() { Command = command };
			return packet.Serialize();
		}