D | SocketListener.cpp | 39 SocketListener::SocketListener(const char *socketName, bool listen) { in SocketListener() argument 40 init(socketName, -1, listen, false); in SocketListener() 43 SocketListener::SocketListener(int socketFd, bool listen) { in SocketListener() argument 44 init(nullptr, socketFd, listen, false); in SocketListener() 47 SocketListener::SocketListener(const char *socketName, bool listen, bool useCmdNum) { in SocketListener() argument 48 init(socketName, -1, listen, useCmdNum); in SocketListener() 51 void SocketListener::init(const char *socketName, int socketFd, bool listen, bool useCmdNum) { in init() argument 52 mListen = listen; in init() 92 if (mListen && listen(mSock, backlog) < 0) { in startListener()
|