Write the function get_nick_by_fd().