nonblocking stdin->socket->server->socket->stdout