mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-01-02 01:27:47 +00:00
18 lines
452 B
Python
18 lines
452 B
Python
import vban_cmd
|
|
from vban_cmd import kinds
|
|
import socket
|
|
from threading import Thread
|
|
|
|
_kind = 'banana'
|
|
|
|
vbanrs = {kind.id: vban_cmd.connect(_kind, ip='ws.local') for kind in kinds.all}
|
|
tests = vbanrs[_kind]
|
|
|
|
def setup_package():
|
|
tests._rt_packet_socket.bind((socket.gethostbyname(socket.gethostname()), tests._port))
|
|
tests.worker = Thread(target=tests._send_register_rt, daemon=True)
|
|
tests.worker.start()
|
|
|
|
def teardown_package():
|
|
pass
|