Changed the type to socklen_t