By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,302 Members | 1,453 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,302 IT Pros & Developers. It's quick & easy.

network programming

P: n/a
if any one can help me with a piece of code to anlayze the packets i
recieve through TCP/IP to view the layer 3 and layer 2 frame???

Jul 8 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
amany wrote:
if any one can help me with a piece of code to anlayze the packets i
recieve through TCP/IP to view the layer 3 and layer 2 frame???
I'm sure you OS will provide the required tools, so you should ask on an
OS specific group.

--
Ian Collins.
Jul 8 '06 #2

P: n/a

Ian Collins wrote:
amany wrote:
if any one can help me with a piece of code to anlayze the packets i
recieve through TCP/IP to view the layer 3 and layer 2 frame???
I'm sure you OS will provide the required tools, so you should ask on an
OS specific group.

--
Ian Collins.
hello
i want to build a simple packet analyzer..stiill need to ask an OS
groups??

Jul 8 '06 #3

P: n/a
amany wrote:
Ian Collins wrote:
>>amany wrote:
>>>if any one can help me with a piece of code to anlayze the packets i
recieve through TCP/IP to view the layer 3 and layer 2 frame???

I'm sure you OS will provide the required tools, so you should ask on an
OS specific group.

--
Ian Collins.

hello
i want to build a simple packet analyzer..stiill need to ask an OS
groups??
Network programming tends to be platform specific and you will get
better help on a group dedicated to programming on your platform. There
may well be a tool you can use and simply parse its output.

Note, it's normal practice on Usenet not to quote signatures (the bit
below the --).

--
Ian Collins.
Jul 8 '06 #4

P: n/a
amany wrote:
if any one can help me with a piece of code to anlayze the packets i
recieve through TCP/IP to view the layer 3 and layer 2 frame???
Google for pcap, libpcap, and winpcap. It wedges your TCP layer and reports
all the packets.

And always find the best newsgroup for a question. This one is only
qualified to discuss C++, and you are only lucky anyone here knew the
answer.

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
Jul 8 '06 #5

P: n/a
amany wrote:
>
Ian Collins wrote:
>amany wrote:
if any one can help me with a piece of code to anlayze the packets i
recieve through TCP/IP to view the layer 3 and layer 2 frame???
I'm sure you OS will provide the required tools, so you should ask on an
OS specific group.
i want to build a simple packet analyzer..stiill need to ask an OS
groups??
Yes, because network programming is OS specific. Of course, you have to
choose an OS specific _programming_ newsgroup. ISO C++, which is the topic
of comp.lang.c++, doesn't provide any functionality for network
programming.
Jul 9 '06 #6

P: n/a
"amany" <en*******@yahoo.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
if any one can help me with a piece of code to anlayze the packets i
recieve through TCP/IP to view the layer 3 and layer 2 frame???
Why don't you just download ethereal which allows you to examing all packets
incoming and outgoing? Other than that, you'll need to do a lot of research
in the socket code for your OS.
Jul 12 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.