Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/p/y/pyroute2-HEAD/examples/push_pull_rpc.py   pyroute2(Download)
# create the first endpoint, serve two sockets
ioc1 = Node()
ioc1.serve('tcp://0.0.0.0:9824/push')
ioc1.mirror()
 

src/p/y/pyroute2-HEAD/examples/req_rep.py   pyroute2(Download)
node1 = Node()
node1.register(Namespace())
node1.serve(url)
 
node2 = Node()

src/p/y/pyroute2-HEAD/examples/ioc_server.py   pyroute2(Download)
node = Node()
node.register(Namespace())
node.serve('tcp://localhost:9824')
print(' hit Ctrl+D to exit ')
sys.stdin.read()

src/p/y/pyroute2-HEAD/tests/test_messaging.py   pyroute2(Download)
    def setup(self):
        self.url_tcp = 'tcp://0.0.0.0:9823/push'
        self.url_udp = 'udp://0.0.0.0:9823/push'
        self.node1 = Node()
        self.node1.serve(self.url_tcp)
        self.node1.serve(self.url_udp)
    def setup(self):
        url = 'unix://\0one_test_socket/service'
        self.node1 = Node()
        self.node1.register(Namespace())
        self.node1.serve(url)