timeouts, default port

This commit is contained in:
Denys Savchenko 2024-06-29 11:08:51 +02:00
parent 56f7e9f152
commit fdaa15265b
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ from PIL import ImageGrab as ig
class Screen():
def __init__(self):
self.FPS = 10
self.FPS = 4
self.screenbuf = ""
self.password = ""
if ver==2:

View File

@ -67,7 +67,7 @@ def screenfeed():
### main ###
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("-p", "--port", help="port, default 18331", type=int, default=18331)
parser.add_argument("-p", "--port", help="port, default 8888", type=int, default=8888)
parser.add_argument("-w", "--password", help="password, default no password", default="")
parser.add_argument("-s", "--https", help="enable https, default http", action="store_true")
parser.add_argument("-c", "--cert", help="certificate file")

View File

@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with Screenshare. If not, see <https://www.gnu.org/licenses/>.
*/
var frameinterval = 200; // 200 milliseconds means 5 frames per second
var frameinterval = 500; // 200 milliseconds means 5 frames per second
var frameerrcount = 0;
var screenfeedtimeout = null;