Code example for Selector

Methods: wakeup

0
            mSelector.wakeup();
        } 
 
        public void shutdown() { 
            mShutdown = true;
            mSelector.wakeup();
        } 
 
        @Override 
        public void run() { 
            try { 
                mSelector = createSelector();
            } catch (IOException e) {
                e.printStackTrace();
                return; 
            } 
 
            int tries = 0;
 
            Log.i(TAG, "RemoteControl started and ready on port " + mPort);
            Tag t;