invalid conversion from int to socklen
问题 Below is my code for Linux. I am implementing a client/server application and below is the server .cpp file. int main() { int serverFd, clientFd, serverLen, clientLen; struct sockaddr_un serverAddress;/* Server address */ struct sockaddr_un clientAddress; /* Client address */ struct sockaddr* serverSockAddrPtr; /* Ptr to server address */ struct sockaddr* clientSockAddrPtr; /* Ptr to client address */ /* Ignore death-of-child signals to prevent zombies */ signal (SIGCHLD, SIG_IGN);