Ensuring that listening_ports results are unique

Fixing #329 
This is going to result in quadratic behavior when building up a dataset; probably not a big deal for listening sockets, but if someone reuses this for something else, it might have unexpected performance implications, maybe there should be a note in the header?