Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)
Example #5
0
 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())
Example #6
0
 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())