Exemplo n.º 1
0
        /// <summary>
        /// Called when a data packet is available to send from the
        /// NetLayerWindow connection.
        /// </summary>
        /// <param name="Data">Supplies the data packet.</param>
        /// <returns>True on success, else false on failure.</returns>
        private bool OnSend(byte[] Data)
        {
            PacketSendEventArgs EventArgs;

            EventArgs = new PacketSendEventArgs(Data);

            PacketSendEvent(this, EventArgs);
            return(true);
        }
        /// <summary>
        /// Called when a data packet is available to send from the
        /// NetLayerWindow connection.
        /// </summary>
        /// <param name="Data">Supplies the data packet.</param>
        /// <returns>True on success, else false on failure.</returns>
        private bool OnSend(byte[] Data)
        {
            PacketSendEventArgs EventArgs;

            EventArgs = new PacketSendEventArgs(Data);

            PacketSendEvent(this, EventArgs);
            return true;
        }