-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServer.py
More file actions
15 lines (12 loc) · 700 Bytes
/
Server.py
File metadata and controls
15 lines (12 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import argparse
from tools.server import Server
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Server for the Fpre function and the client to client communication.')
parser.add_argument('-p', '--port', type=int, default=8448,
help='port to listen to incoming connections (default 8448).')
parser.add_argument('-n', '--noencryption', default=False, action='store_true',
help="specify this option if you don't care about security "
"and want to use unencrypted communication")
args = parser.parse_args()
server = Server(args.port, args.noencryption)
server.start_server()