[Twisted-Python] Multicast XMLRPC

Chaz. eprparadocs at gmail.com
Thu Aug 24 09:49:49 MDT 2006


I have a XMLPRC client that works well under TCP and I am now trying to 
get it to work under Multicast conditions.

Here is the "TCP" code I used:

class StorageService(internet.TCPServer):
     def __init__(self,tcpPort,configInfo):
         r = StoragePeer(configInfo)
         xmlrpc.addIntrospection(r)
         internet.TCPServer.__init__(self,tcpPort,server.Site(r))

I changed the call to TCPServer to:


class StorageService(internet.TCPServer):
     def __init__(self,tcpPort,configInfo):
         r = StoragePeer(configInfo)
         xmlrpc.addIntrospection(r)
         internet.MulticastServer.__init__(self,tcpPort,server.Site(r))

I thought this would work since, but it doesn't. What I get returned is 
the following error message:


Failed to load application: unbound method __init__() must be called 
with MulticastServer instance as first argument (got StorageService 
instance instead)


Does anyone know what I am doing wrong?

Thanks,
Chaz.




More information about the Twisted-Python mailing list