Beispiel #1
0
        /// <summary>
        /// Настраиваем стандартное TCP
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void devTcpOpt_Click(object sender, EventArgs e)
        {
            TcpOptions options = new TcpOptions();

            options.Port         = app.TcpDevManager.Port;
            options.CountClients = app.TcpDevManager.CountConnections;

            options.ClientBufferSize = app.TcpDevManager.ReceiverBufferSize;

            if (options.ShowDialog(this) == DialogResult.OK)
            {
                app.TcpDevManager.Port             = options.Port;
                app.TcpDevManager.CountConnections = options.CountClients;

                app.TcpDevManager.ReceiverBufferSize = options.ClientBufferSize;
            }
        }
Beispiel #2
0
        /// <summary>
        /// Настраиваем стандартное TCP
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void devTcpOpt_Click(object sender, EventArgs e)
        {
            TcpOptions options = new TcpOptions();

            options.Port = app.TcpDevManager.Port;
            options.CountClients = app.TcpDevManager.CountConnections;

            options.ClientBufferSize = app.TcpDevManager.ReceiverBufferSize;

            if (options.ShowDialog(this) == DialogResult.OK)
            {
                app.TcpDevManager.Port = options.Port;
                app.TcpDevManager.CountConnections = options.CountClients;

                app.TcpDevManager.ReceiverBufferSize = options.ClientBufferSize;
            }
        }