Netquery is a class to simplify queries on many types of servers in the network.
It allows you to specify the address, port, and transport method, and data to send to the server, and it basically does the rest.
There is also an optional garbage filter which you can set to dispose of nasty stuff which you do not want returned; such as newlines, or standard print messages which may be returned.