Exemple #1
0
        // init cranks up the socket, and processes the SERVER_HELLO_COMPLETE message.
        void init()
        {
            // initialize socket
            _cRIOConnection = new TcpClient();
            _cRIOConnection.Connect(RobotHost, NetworkTablePort);
            _nstream = _cRIOConnection.GetStream();
            _cRIOConnection.NoDelay = true;

            // start things off
            HelloMessage hello = new HelloMessage();

            sendMessage(hello);
        }
        // init cranks up the socket, and processes the SERVER_HELLO_COMPLETE message.
        void init()
        {
            // initialize socket
            _cRIOConnection = new TcpClient();
            _cRIOConnection.Connect(RobotHost, NetworkTablePort);
            _nstream = _cRIOConnection.GetStream();
            _cRIOConnection.NoDelay = true;

            // start things off
            HelloMessage hello = new HelloMessage();
            sendMessage(hello);
        }