Maybe a bit of a newbie question.
Im trying to build a network monitor in max that triggers notes when packets are sent and received and also depending on the amount of packets control tempo. What would be the best way to do this? Can I do it with the mxj send/recieve?
Thanks in advance for any help
OSC is a nice way to go for control of things remotely ’cause you can
create namespaces for the messages and route them accordingly without
having to devise your own parsing scheme. There are some max objects
for doing this: udpreceive, udpsend.
Will this allow me to intercept the packets without affecting other programs?
Ideally id like the patch to work in the background while I access websites and transfer data.
Oh, are you trying to sniff packets?? that’s a different story. Maybe
you could download Carnivore and do an mxj with that code.
I think the program you’re describing is called a "packet sniffer", but I
don’t know whether the OSC objects support this. Anyone?
I believe most packet sniffers generate plain text log files, so maybe you
could use Max to access and parse the data in thse files to do what you
Best of luck!
You need to run your ethernet card in promiscuous mode to capture all
data. This requires using packet capture libraries like libpcap on
unix and windows.
might I suggest using ‘carnivore’ by the RSG – which is ready made to
give you that data :)
v a d e //
Wow, thanks for all these replies!
I think capturing all the data to file is going to be my best bet, since writing things in java isnt exactly my forte.
Which platform are you workling on? I have a (not well tested) carnivore
external for windows that sniffs all the network traffic and gives it to
you through an outlet….
Its for windows :) Ive got carnivore working through a very basic patch, any help is most appreciated
Is it possible to use Carnivore as a MAX lib rather than in Processing?
Forums > MaxMSP