T
Terry Olsen
Is there a good way to find a pattern of bytes/chars in a stream? I've got
a serial port connected to a tcp port. I need to be able to catch a unique
character string in the stream so that I can perform certain functions. For
example, I have a telnet client connected to an Apple II through the serial
port. The user at the telnet terminal is using the BBS running on the Apple
II just like the good ole days of dialup BBS's. I need to be able to catch
a "command string" sent out from the Apple II (like the "+++ATH") that tells
my app to disconnect the telnet client (in lieu of the modem hanging up).
Is there a good way to do this?
a serial port connected to a tcp port. I need to be able to catch a unique
character string in the stream so that I can perform certain functions. For
example, I have a telnet client connected to an Apple II through the serial
port. The user at the telnet terminal is using the BBS running on the Apple
II just like the good ole days of dialup BBS's. I need to be able to catch
a "command string" sent out from the Apple II (like the "+++ATH") that tells
my app to disconnect the telnet client (in lieu of the modem hanging up).
Is there a good way to do this?