Change selectservers() and readtcp() to accept a string, since now it can be a service name instead of just a port.
Possible uninitialised variable.
OUTFILE is not set when test is skipped. unset all local variables to make sure this will not happen again.