This class implements directed routing, which means that the destination address is a preset address for each session.
Example 5.33. DirectedRouter example |
---|
The following service uses a DirectedRouter that
redirects every connection to the Service(name="demo_service", proxy_class=HttpProxy, router=DirectedRouter(dest_addr=SockAddrUnix('/var/sample.socket'), overrideable=FALSE, forge_addr=FALSE)) The following service uses a DirectedRouter that
redirects every connection to the Service(name="demo_service", proxy_class=HttpProxy, router=DirectedRouter(dest_addr=SockAddrInet('192.168.2.24', 8080), overrideable=FALSE, forge_addr=FALSE)) |
Published on May 30, 2024
© BalaSys IT Ltd.
Send your comments to support@balasys.hu