コード例 #1
0
def establish_server_connection():
    global server
    server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    server.bind(('localhost', 8181))

    Logger.i("Awaiting connection. Please click 'Start VR' in Blender")
    server.listen(2)

    global client
    (client, address) = server.accept()

    Logger.d("Esablished connection from: ", address)
    Logger.i("Connection to BlenderVR-addon established")
コード例 #2
0
def run_system_startup():
    Logger.i("Starting VR")