Exemple #1
0
    def startProtocol(self):
        print "[UDP] starting & sending..."

        b = Bid()
        b_payload = b.buildPayload(12345, 55)

        a = Advert()
        a_payload = a.buildPayload(12345, "localhost",1,2,3,4)
        packetJson = a.toJSON()

        bw = BidWin()
        bw_payload = bw.buildPayload(12345, "localhost", 1, 2)

        self.transport.write(bw_payload, (self.host, self.port))
Exemple #2
0
 def connectionMade(self):
     print "I am Nexus and connected to Backbone\n"
     a = Advert()
     self.sendData(a.buildPayload(12345, "localhost",1,2,3,4))