Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!EWOK.AMD.BNL.GOV!gc From: gc@EWOK.AMD.BNL.GOV (Graham Campbell) Newsgroups: comp.protocols.tcp-ip Subject: Re: telnet SUPRESS-TELNET option... Message-ID: <8807201415.AA06192@ewok.amd.bnl.gov> Date: 20 Jul 88 14:15:41 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 14 From: thumper!karn@faline.bellcore.com (Phil R. Karn) Organization: Bell Communications Research, Inc Subject: Re: telnet SUPRESS-TELNET option... To: tcp-ip@sri-nic.arpa In my PC implementation, the Telnet receive code first scans a receive buffer for the IAC character using the memchr() C library routine. This is a fast binary search routine implemented in assembler; it is ^^^^^^^^^^^^^ Nooo, binary search works on ordered lists, you don't sort the buffer first do you? :-) analogous to the strchr() (aka index) routine for ascii strings. ............... Graham