wrap sockfd by FILE*