<br><br><div><span class="gmail_quote">On 6/14/05, <b class="gmail_sendername">apocalypznow</b> &lt;<a href="mailto:apocalypznow@gmail.com">apocalypznow@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
How do you make a server that handles both XMLRPC and PB?<br><br>How do you do this as a service?<br><br>When I mean service, I mean as in the following code:<br><br>application = twisted.application.service.Application(&quot;pbserver&quot;)
<br>myService = twisted.application.service.IServiceCollection(application)<br><br>p = portal.Portal(DefaultRealm())<br>dbu=twisted.cred.checkers.InMemoryUsernamePasswordDatabaseDontUse()<br>dbu.addUser(&quot;user1&quot;,&quot;pass1&quot;)
<br>p.registerChecker(dbu)<br><br>myServer =<br>twisted.application.internet.TCPServer(8080,pb.PBServerFactory(p))<br>myServer.setServiceParent(myService)</blockquote><div><br>
<br>
this is really simple and is explained in the HOW TO multiple protocols.<br>
<br>
short story is you have your Factories delegate to the same service.<br>
</div><br></div><br><br><br>-- <br>If you don't know what you want, you probably need a nap.