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(); }
public static byte[] CreatePacket(byte command) { var packet = new Socks4Packet() { Command = command }; return packet.Serialize(); }