getservice
int getservice(char *);
if ((r->a = getservice(port)) == -1)
if ((r->a = getservice(port)) == -1 ||
(r->b = getservice(p)) == -1)