Added the udp listener to the trycatch clause so it doesn't stop the entire port test.
Consolidated a couple of classes for portability.
Added a method of polling for a result instead of only events.