port_connection
extern int port_connection(int fd, int *socket_out, int *pid_out);
fd = port_connection(port->fd, socket, &pid);