relab/server/NetGenieSrv.py

40 lines
829 B
Python

#!/bin/env python3
def check_bridge_socket()::
evt = None
return evt
def handle_bridge_evt(evt):
"""
TODO: Whatever bridge events to handle
"""
def check_debug_socket():
dbg_evt = None
return dbg_evt
def handle_debug_evt(dbg_evt):
""" TODO: Do something with the events here."""
def run_loop():
""" """
while True:
# 1. Check the BridgeSocket
evt = check_bridge_socket()
if evt != None:
handle_bridge_evt(evt)
dbg_evt = check_debug_socket()
if dbg_evt != None:
handle_debug_evt(dbg_evt)
def main():
"""
1. TODO: Open Server port that the device connects to.
2. TODO: Open Server port that an admin connects to, i.e., to test sending packets to
3. TODO:
"""
if __name__ == '__main__':
main()