mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-06 23:04:11 +00:00
some improvements
This commit is contained in:
parent
9c091fb1f7
commit
16c5388d3d
2 changed files with 42 additions and 19 deletions
10
bw_server.py
10
bw_server.py
|
|
@ -51,12 +51,22 @@ try:
|
|||
from boswatch.descriptor.descriptor import Descriptor
|
||||
from boswatch.filter.doubeFilter import DoubleFilter
|
||||
from boswatch.utils import header
|
||||
from boswatch.network.broadcast import BroadcastClient
|
||||
from boswatch.network.broadcast import BroadcastServer
|
||||
except Exception as e: # pragma: no cover
|
||||
logging.exception("cannot import modules")
|
||||
print("cannot import modules")
|
||||
print(e)
|
||||
exit(1)
|
||||
|
||||
# Test for the broadcast connection info function
|
||||
server = BroadcastServer()
|
||||
client = BroadcastClient()
|
||||
server.start()
|
||||
client.getConnInfo()
|
||||
print(client.serverIP, client.serverPort)
|
||||
server.stop()
|
||||
|
||||
try:
|
||||
header.logoToLog()
|
||||
header.infoToLog()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue