Setting up python socket server with non-standard termination string.

indy1000 at gmail.com indy1000 at gmail.com
Tue May 8 09:59:26 EDT 2007


Hi,

I'm trying to create a tcp/ip port listening socket server for various
cellular devices that don't use the standard "\r\n" termination string
at the end of their message.  Instead, they use "-ND-".  Do you know
how I can setup such a server, preferably using either 'socket.py',
'serversocket.py' or 'twisted.py'?

Many thanks,
David Jones




More information about the Python-list mailing list