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

Mike C. Fletcher mcfletch at rogers.com
Wed Apr 16 03:20:17 CEST 2003


Peter Hansen wrote:

>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...  ;-)
>
>-Peter
>  
>
I think "BD" is refering to "database", or more generally, a data 
storage mechanism (table is mentioned later), but my french is very 
rusty.  Took me a while to figure out Somme de contrôl (checksum) and 
Données (data AFAICT from context, though it might mean "arguments" 
("given stuff")).  I think the OP is looking for the socket module (i.e. 
a low-level module), though as Peter mentions, Twisted would likely be 
able to handle listening for UDP packets as well.

Original poster, I believe there is a French Python list if you'd like, 
though honestly it's kinda fun piecing together what French messages 
mean :) .

Oh, and to answer the actual question (who's done it already), dozens, 
maybe hundreds or thousands of people, depending on whether you care 
about it being in Python or not, and whether you're going to sweat the 
details :) .

Enjoy,
Mike

_______________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://members.rogers.com/mcfletch/








More information about the Python-list mailing list