On Jul 27, 8:41 am, Stefan Behnel <stefan...@behnel.de> wrote: > kak...@gmail.com, 27.07.2010 14:26: > > > > > On Jul 27, 8:14 am, Stefan Behnel wrote: > >> kak...@gmail.com, 27.07.2010 13:58: > > >>> On Jul 27, 6:30 am, Stefan Behnel wrote: > >>>> kak...@gmail.com, 27.07.2010 12:17: > > >>>>> I receive the following different Xml Messages from a socket: > > >>>> From a bare socket? TCP? UDP? Or what else? > > >>>>> Which is the best way to make a distinction between them so that every > >>>>> time my app receives the one or the other, parse them correctly? > > >>>> Use an application level protocol? > > >>>> From a tcp socket using the twisted framework. > >>>> Application level protocol... Such as? > > >> Depends on what you *can* use. Do you control the sending side? > > >> Note: giving better details helps others in giving better answers. > > > Well yes you are right! > > I can't control the sending side. > > The app i'm writing just accepts incoming xml messages. Like the ones > > above. > > When i receive a message I parse it and print the information. > > I know how to parse both xml messages. > > What i want is to distinguish them so that i can trigger the > > appropriate parsing method. > > Do they come in concatenated or one per connection? > > Stefan
one per connection. -- http://mail.python.org/mailman/listinfo/python-list