PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Noms de domaine > comp.protocols.tcp-ip > C++ library for TCP/IP
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.protocols.tcp-ip TCP and IP network protocols.

C++ library for TCP/IP

Réponse
 
LinkBack Outils de la discussion
Vieux 10/04/2007, 21h16   #1
barcaroller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut C++ library for TCP/IP

Does anyone know of a C++ library that includes classes to
represent/manipulate IP datagrams, IP fragments, UDP datagrams, and TCP
segments? I'm not looking for a socket class library. I am capturing IP
packets using a sniffer and I need to analyze these packets from within a
C++ program.

I did a quick search in Boost but did not find anything relevant.


  Réponse avec citation
Vieux 11/04/2007, 15h34   #2
Jorgen Grahn
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: C++ library for TCP/IP

On Tue, 10 Apr 2007 16:16:11 -0400, barcaroller <barcaroller@music.net> wrote:
> Does anyone know of a C++ library that includes classes to
> represent/manipulate IP datagrams, IP fragments, UDP datagrams, and TCP
> segments? I'm not looking for a socket class library. I am capturing IP
> packets using a sniffer and I need to analyze these packets from within a
> C++ program.
>
> I did a quick search in Boost but did not find anything relevant.


Boost does a lot of things, but this is a bit specialized, don't you
think?

Any decent C library is also a C++ library, so I suggest checking out
libnet: http://www.packetfactory.net/libnet/. I haven't used it, but
it seems reasonably popular.

Of course, you might want to wrap it in your own C++ interface, for
type safety, RAII, <algorithm> compatibility or whatever.

/Jorgen

--
// Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
\X/ snipabacken.dyndns.org> R'lyeh wgah'nagl fhtagn!
  Réponse avec citation
Vieux 12/04/2007, 22h59   #3
LMZ
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: C++ library for TCP/IP

On Apr 10, 11:16 pm, "barcaroller" <barcarol...@music.net> wrote:
> Does anyone know of a C++ library that includes classes to
> represent/manipulate IP datagrams, IP fragments, UDP datagrams, and TCP
> segments? I'm not looking for a socket class library. I am capturing IP
> packets using a sniffer and I need to analyze these packets from within a
> C++ program.
>
> I did a quick search in Boost but did not find anything relevant.


try to use this: http://www.mozilla.org/projects/xpnet/
portable, simple and it Mozilla

  Réponse avec citation
Vieux 15/04/2007, 14h08   #4
EventHelix.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: C++ library for TCP/IP

On Apr 10, 4:16 pm, "barcaroller" <barcarol...@music.net> wrote:
> Does anyone know of a C++ library that includes classes to
> represent/manipulate IP datagrams, IP fragments, UDP datagrams, and TCP
> segments? I'm not looking for a socket class library. I am capturing IP
> packets using a sniffer and I need to analyze these packets from within a
> C++ program.
>
> I did a quick search in Boost but did not find anything relevant.


Try libpcap.

Another option would be to use Wireshark and then exporting the
packets to PDML and post processing the PDML file.
We have followed the same approach in our tool, Visual Ether.

--
VisualEther 1.0 - http://www.EventHelix.com/VisualEther
Generate sequence diagram from Wireshark (Ethereal)


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h20.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 1,41599 seconds with 12 queries