NEDLib is a library that allows detection of advanced network events. It is based on libpcap and designed to be flexible with an intuitive and object oriented API. You can make your program react to any network happenings with only a few lines of code.