Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^2: Using socket instead of pcap

by rowdog (Curate)
on May 07, 2010 at 04:34 UTC ( #838854=note: print w/replies, xml ) Need Help??

in reply to Re: Using socket instead of pcap
in thread Using socket instead of pcap

I suppose it might be theoretically possible to write a pure Perl replacement for libpcap. Of course, you'd have to know all the intimate details of network protocols and *nix and even then you would likely find that your Perl ran too slow to be useful in real time analysis of busy networks. So, you profile and find the slow parts which you convert to XS aka C and when you're done, you'll probably find that you've recreated a vastly inferior version of libpcap.

If you know the protocols, OS details and Perl well enough to pull this off, you should already know the answer to this question. Use libpcap and enjoy standing on the shoulders of giants.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://838854]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2017-03-29 00:34 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (343 votes). Check out past polls.