def writePPPControlFrame(self, frame): logging.debug('PPP control frame received (%s bytes).' % len(frame)) logging.log(VERBOSE, hexdump(frame)) if self.state == SERVER_CALL_CONNECTED_PENDING or \ self.state == SERVER_CALL_CONNECTED: packet = SSTPDataPacket(frame) packet.writeTo(self.transport.write)
def writePPPDataFrame(self, frame): if __debug__: logging.debug('PPP data frame received (%s bytes).' % len(frame)) logging.log(VERBOSE, hexdump(frame)) if self.state == SERVER_CALL_CONNECTED: packet = SSTPDataPacket(frame) packet.writeTo(self.transport.write)
def pppDataFrameReceived(self, frame): logging.debug('PPP data frame received (%s bytes).' % len(frame)) if self.sstp.state == SERVER_CALL_CONNECTED: packet = SSTPDataPacket(frame) self.sstp.transport.write(packet.dump())