Converted NetProtocol from enum to class
Fixed bug in comparing SRVRecords and comparator struct
Throw exception if res_query fails