I'm trying to write a simple program which flashes a green light if there is network trafic on the ethernet card or airport card. But I don't know what API or library to look for under Cocoa? I don't find anything in the dev doc. Does anyone know how I should start? Thanks.