def proxyAnnounceWork(self, name, cobraname, port): """ Send out a multicast announcement to our subjects to go help a cluster server. """ # Get the host IP from the connection information host, x = cobra.getCallerInfo() buf = "cobra:%s:%s:%d:%s" % (name, cobraname, port, host) self.sendsock.sendto(buf, (cluster_ip, cluster_port))
def workGotten(self, server, work): ip,port = cobra.getCallerInfo() self._dispWorkGotten(work, ip, port)
def workGotten(self, server, work): ip, port = cobra.getCallerInfo() self._dispWorkGotten(work, ip, port)