44# Licensed under the Apache License, Version 2.0. See the LICENSE file.
55
66"""
7- JSON-RPC Proxy
7+ Dopple JSON-RPC Proxy
88
99This Python script provides HTTP proxy to Unix Socket based JSON-RPC servers.
1010Check out --help option for more information.
1111
1212Build with cython:
1313
14- cython rpcproxy .py --embed
15- gcc -O3 -I /usr/include/python3.5m -o rpcproxy rpcproxy .c \
14+ cython dopple .py --embed
15+ gcc -O3 -I /usr/include/python3.5m -o dopple dopple .c \
1616 -Wl,-Bstatic -lpython3.5m -lz -lexpat -lutil -Wl,-Bdynamic -lpthread -ldl -lm
1717
1818"""
3737BUFSIZE = 32
3838DELIMITER = ord ('\n ' )
3939BACKEND_CONNECTION_TIMEOUT = 30.0
40- INFO = """JSON-RPC Proxy
40+ INFO = """Dopple JSON-RPC Proxy
4141
4242Version: {version}
4343Proxy: {proxy_url}
@@ -246,7 +246,7 @@ def run(self):
246246 self .conn = get_ipc_connector (self .backend_address )
247247 self .conn .check_connection (timeout = BACKEND_CONNECTION_TIMEOUT )
248248
249- print ("JSON-RPC HTTP Proxy: {} -> {}" .format (
249+ print ("Dopple JSON-RPC HTTP Proxy: {} -> {}" .format (
250250 self .backend_address , self .proxy_url ), file = sys .stderr , flush = True )
251251 self .serve_forever ()
252252
@@ -264,7 +264,7 @@ def run(self):
264264
265265def parse_args ():
266266 parser = ArgumentParser (
267- description = 'HTTP Proxy for JSON-RPC servers' ,
267+ description = 'Dopple HTTP Proxy for JSON-RPC servers' ,
268268 formatter_class = ArgumentDefaultsHelpFormatter
269269 )
270270
@@ -287,7 +287,7 @@ def run(proxy_url=DEFAULT_PROXY_URL, backend_path=DEFAULT_BACKEND_PATH):
287287
288288def run_daemon (proxy_url = DEFAULT_PROXY_URL , backend_path = DEFAULT_BACKEND_PATH ):
289289 proxy = Proxy (proxy_url , backend_path )
290- th = threading .Thread (name = 'jsonrpcproxy ' , target = proxy .run )
290+ th = threading .Thread (name = 'dopple ' , target = proxy .run )
291291 th .daemon = True
292292 th .start ()
293293 return proxy
0 commit comments