Esempio n. 1
0
 def wrapper():
     with server_ios_launcher.ServerIOSContextManager(
             mode=server_ios_launcher.RPCServerMode.standalone.value,
             host=HOST_URL,
             port=HOST_PORT,
             key=DEVICE_KEY,
     ) as ios_server:
         f(host=ios_server.host, port=ios_server.port)
Esempio n. 2
0
 def wrapper():
     proxy_server = proxy.Proxy(host=HOST_URL, port=HOST_PORT)
     with server_ios_launcher.ServerIOSContextManager(
             mode=server_ios_launcher.RPCServerMode.proxy.value,
             host=proxy_server.host,
             port=proxy_server.port,
             key=DEVICE_KEY,
     ):
         f(host=proxy_server.host, port=proxy_server.port)
     proxy_server.terminate()
Esempio n. 3
0
 def wrapper():
     tracker_server = tracker.Tracker(host=HOST_URL,
                                      port=HOST_PORT,
                                      silent=True)
     with server_ios_launcher.ServerIOSContextManager(
             mode=server_ios_launcher.RPCServerMode.tracker.value,
             host=tracker_server.host,
             port=tracker_server.port,
             key=DEVICE_KEY,
     ):
         f(host=tracker_server.host, port=tracker_server.port)
     tracker_server.terminate()
Esempio n. 4
0
 def wrapper():
     tracker_server = tracker.Tracker(host=HOST_URL,
                                      port=HOST_PORT,
                                      silent=True)
     proxy_server_tracker = proxy.Proxy(host=HOST_URL,
                                        port=8888,
                                        tracker_addr=(tracker_server.host,
                                                      tracker_server.port))
     with server_ios_launcher.ServerIOSContextManager(
             mode=server_ios_launcher.RPCServerMode.proxy.value,
             host=proxy_server_tracker.host,
             port=proxy_server_tracker.port,
             key=DEVICE_KEY,
     ):
         f(host=tracker_server.host, port=tracker_server.port)
     proxy_server_tracker.terminate()
     tracker_server.terminate()