コード例 #1
0
        /// <summary>
        /// Broadcasts a UDP packet corresponding to an IPacket.
        /// The ip address and port are specified in the constructor.
        /// </summary>
        /// <param name="bytes"></param>
        public void Send(IPacket packet)
        {
            var rawBytes = packet.GetRawWireBytes();

            Send(rawBytes);
        }