Lines Matching defs:IAC
53 IAC = bytes([255]) # "Interpret As Command"
216 self.iacseq = b'' # Buffer for IAC sequence.
285 """Write a string to the socket, doubling any IAC characters.
291 if IAC in buffer:
292 buffer = buffer.replace(IAC, IAC+IAC)
364 Don't block unless in the midst of an IAC sequence.
378 Don't block unless in the midst of an IAC sequence.
392 unless in the midst of an IAC sequence.
431 the midst of an IAC sequence.
443 if c != IAC:
449 # 'IAC: IAC CMD [OPTION only for WILL/WONT/DO/DONT]'
455 if c == IAC:
473 self.msg('IAC %d not recognized' % ord(c))
479 self.msg('IAC %s %d',
484 self.sock.sendall(IAC + WONT + opt)
486 self.msg('IAC %s %d',
491 self.sock.sendall(IAC + DONT + opt)