The Android client is implemented in the following ways:
1, first scan all the PC in the LAN to see if there is a PC-side server running and listening to 30000 ports.
2. If the server that is not scanned to the PC side is running and listening on port 30000, rescan or exit.
3, scan to the pc side of the server running and monitoring 30000 ports, then control the PC end shutdown, restart or cancel shutdown.
4, click the Shutdown button, send instructions to the PC server side
5, click the Restart button, send instructions to the PC server side
6, click the Cancel button, send instructions to the PC server side
==================================================================================================
Ouyangpeng welcome reprint, sharing with people is the source of progress!
Reprint please keep the original address : Http://blog.csdn.net/ouyang_peng
==================================================================================================
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
My Android Advanced tour------>android realizes the ability to control PC-side shutdown and restart with Android Phone (ii) Android client feature display