def main(): if len(sys.argv) == 1: print "USAGE: python dylinkrun.py [repy file name] [arguments]" return filename = sys.argv[1] argslist = sys.argv[2:] dylink_portability.run_unrestricted_repy_code(filename, argslist)
def main(): try: filename = sys.argv[1] argslist = sys.argv[2:] except KeyError: print "Arguments: [repy file name] [argument1] [argument2] ..." return dylink_portability.run_unrestricted_repy_code(filename, argslist)
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code( "testchunklib_smallchunk_smallmsg.py")
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code( "testbindlocaladdressshim_udp.py")
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("multipathtest_base.py")
import sys import dylink_portability if len(sys.argv) < 7: print "Usage: \n\t$> python run_shim_proxy.py server_address, server_port, listening_addr, listening_port, shim_port, shim_string" sys.exit() server_address = sys.argv[1] server_port = int(sys.argv[2]) # Specify the TCP port to listen on. listening_addr = sys.argv[3] listening_port = int(sys.argv[4]) shim_port = int(sys.argv[5]) shim_string = sys.argv[6] dylink_portability.run_unrestricted_repy_code("shim_dumb_server_v2.py", [ server_address, server_port, listening_addr, listening_port, shim_port, shim_string ])
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("testchunklib_bigchunk_bigmsg.py")
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("testratelimitshim_lowbandwidth.py")
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code( "testchunklib_bigchunk_bigmsg.py")
import dylink_portability dylink_portability.run_unrestricted_repy_code("sample_helloworld_shim_app.repy", [1, 2])
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("testonehopdetour_tcp_medmsg.py")
import sys import dylink_portability if len(sys.argv) < 3: print "Usage: \n\t$> python run_onehopdetour_forwarder.py TCP_PORT UDP_PORT" sys.exit() TCP_PORT = sys.argv[1] UDP_PORT = sys.argv[2] dylink_portability.run_unrestricted_repy_code("one_hop_forwarder.repy", [TCP_PORT, UDP_PORT])
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("testonehopdetourshim_smallmsg.py")
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code( "testchunklib_bigchunk_multisockets.py")
import sys import dylink_portability if len(sys.argv) < 6: print "Usage: \n\t$> run_rate_limit_proxy.py server_address, server_port, listening_port, shim_port, shim_string" sys.exit() server_address = sys.argv[1] server_port = int(sys.argv[2]) # Specify the TCP port to listen on. listening_port = int(sys.argv[3]) shim_port = int(sys.argv[4]) shim_string = sys.argv[5] dylink_portability.run_unrestricted_repy_code( "shim_rate_limit_server_proxy.py", [server_address, server_port, listening_port, shim_port, shim_string] )
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("testchunklib_bigchunk_multisockets.py")
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("testdatalimitshim_medmsg.py")
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("multipathtest_mixshims.py")
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("testchunklib_smallchunk_smallmsg.py")
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("multipathtest_asciishift.py")
import sys import dylink_portability if len(sys.argv) < 7: print "Usage: \n\t$> python run_shim_proxy.py server_address, server_port, listening_addr, listening_port, shim_port, shim_string" sys.exit() server_address = sys.argv[1] server_port = int(sys.argv[2]) # Specify the TCP port to listen on. listening_addr = sys.argv[3] listening_port = int(sys.argv[4]) shim_port = int(sys.argv[5]) shim_string = sys.argv[6] dylink_portability.run_unrestricted_repy_code("shim_dumb_server_v2.py", [server_address, server_port, listening_addr, listening_port, shim_port, shim_string])
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("testfecshim.py")
import sys import dylink_portability dylink_portability.run_unrestricted_repy_code("udp_proxy.repy", sys.argv[1:])
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("testcompressionshim_medmsg.py")
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("testbindlocaladdressshim_udp.py")
import sys import dylink_portability dylink_portability.run_unrestricted_repy_code("nat_forwarder.repy", sys.argv[1:])
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("testmultipipe.py")
#pragma out import dylink_portability dylink_portability.run_unrestricted_repy_code("testnatpunchshim_medmsg.py")
import sys import dylink_portability if len(sys.argv) < 6: print "Usage: \n\t$> run_rate_limit_proxy.py server_address, server_port, listening_port, shim_port, shim_string" sys.exit() server_address = sys.argv[1] server_port = int(sys.argv[2]) # Specify the TCP port to listen on. listening_port = int(sys.argv[3]) shim_port = int(sys.argv[4]) shim_string = sys.argv[5] dylink_portability.run_unrestricted_repy_code( "shim_rate_limit_server_proxy.py", [server_address, server_port, listening_port, shim_port, shim_string])