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))
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))
def connectionMade(self): print "I am Nexus and connected to Backbone\n" a = Advert() self.sendData(a.buildPayload(12345, "localhost", 1, 2, 3, 4))
def connectionMade(self): print "I am Nexus and connected to Backbone\n" a = Advert() self.sendData(a.buildPayload(12345, "localhost",1,2,3,4))