Lines Matching refs:IAC
85 IAC = to_bytes([255]) # Interpret As Command
90 IAC_DOUBLED = to_bytes([IAC, IAC])
595 self._socket.sendall(to_bytes(data).replace(IAC, IAC_DOUBLED))
705 if byte == IAC:
715 if byte == IAC:
719 suboption.append(IAC)
721 self._read_buffer.put(IAC)
777 """Process subnegotiation, the data between IAC SB and IAC SE."""
818 self._internal_raw_write(to_bytes([IAC, action, option]))
822 value = value.replace(IAC, IAC_DOUBLED)
823 self._internal_raw_write(to_bytes([IAC, SB, COM_PORT_OPTION, option] + list(value) + [IAC, SE]))
966 self.connection.write(to_bytes([IAC, action, option]))
970 value = value.replace(IAC, IAC_DOUBLED)
971 self.connection.write(to_bytes([IAC, SB, COM_PORT_OPTION, option] + list(value) + [IAC, SE]))
1013 properly escaped, so that no IAC character in the data stream messes up
1019 if byte == IAC:
1020 yield IAC
1021 yield IAC
1045 if byte == IAC:
1055 if byte == IAC:
1113 """Process subnegotiation, the data between IAC SB and IAC SE."""