[Twisted-Python] Multiple delimiters in linereceiver

Nov. 29, 2004
12:02 a.m.
Is it possible to use the LineReceiver protocol with multiple delimiters? I've run into situations where clients use either '\r\n' or a '\n'. To handle either situation, I set the delimiter as '\n' and just filter out the '\r' from lineReceived(). This fix works, but it sure is ugly. Has anyone run into a more elegant solution?
7409
Age (days ago)
7409
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michael Mata