Réception et décodage d'une trame UDP

Benoit BESSE benoit.besse at club-internet.fr
Wed Apr 16 19:34:49 EDT 2003


Ok for the language and still all my excuses.
It's exactly what I want to do.
To decode UDP and to insert it in a base and the whole in Python.

"Gerhard Häring" <gh at ghaering.de> a écrit dans le message de news:
mailman.1050456911.19513.python-list at python.org...
* Peter Hansen <peter at engcorp.com> [2003-04-15 20:45 -0400]:
> Benoit BESSE wrote:
> >
> > Bonsoir tout le monde,
> >
> > qui a déjà écrit un module qui écoute, reçoit, décode et insert dans une
BD
> > une trame UDP.
> > Je voudrais décoder la trame UDP ainsi et l'insérer dans une table :
> >     - Port Source
> >     - Port Destination
> >     - Longueur
> >     - Somme de contrôle
> >     - Données
> >
> > Merci par avance.
>
> Hmm... almost looks like another "Twisted has that" but I'm
> not sure what "BD" is so I can't be sure...  ;-)

BD = base données = database.

Of course, twisted has that (twisted.enterprise.adbapi,
twisted.enterprise.row) ;-)

The original poster might also want to have a look at a packet sniffer
like tcpdump - looks like tcpdump can be talked to do pretty much all of
that, except the database interface.

Btw. the usual language on this group is English, but there *is* a
french Python newsgroup: fr.comp.lang.python.

Gerhard
--
mail:   gh at ghaering.de
web:    http://ghaering.de/






More information about the Python-list mailing list