getport
fd = getport(RM, 0);
int getport(char *, int);
rem = getport(RM, 0);
pfd = getport(cp, port);
pfd = getport(RM, 0);