public static UdpPacket CreatePacket(string header, params string[] param) { UdpPacket packet = new UdpPacket(header); for (int i = 0; i < param.Length; i++) { packet.AppendParameter(param[i]); } return packet; }
public static UdpPacket CreatePacket(string header) { UdpPacket packet = new UdpPacket(header); return packet; }