int sock -> sock_t sock