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))
示例#2
0
文件: cluster.py 项目: BwRy/vivisect
 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))
示例#3
0
 def workGotten(self, server, work):
     ip,port = cobra.getCallerInfo()
     self._dispWorkGotten(work, ip, port)
示例#4
0
 def workGotten(self, server, work):
     ip, port = cobra.getCallerInfo()
     self._dispWorkGotten(work, ip, port)