def send(self, frame): self.protocol.transport.write(cons.constructFrame(frame))
def sendFrame(to, x): print "sending frame "+displayFrame(x) to.transport.write(cons.constructFrame(x))