Searched refs:socketId (Results 1 – 10 of 10) sorted by relevance
/base/hiviewdfx/hiview/core/ |
D | event_server.cpp | 73 void InitSocketBuf(int socketId, int optName) in InitSocketBuf() argument 77 …if (getsockopt(socketId, SOL_SOCKET, optName, static_cast<void *>(&bufferSizeOld), &sizeOfInt) < 0… in InitSocketBuf() 82 …if (setsockopt(socketId, SOL_SOCKET, optName, static_cast<void *>(&bufferSizeSet), sizeof(int)) < … in InitSocketBuf() 88 …if (getsockopt(socketId, SOL_SOCKET, optName, static_cast<void *>(&bufferSizeNew), &sizeOfInt) < 0… in InitSocketBuf() 94 void InitSendBuffer(int socketId) in InitSendBuffer() argument 96 InitSocketBuf(socketId, SO_SNDBUF); in InitSendBuffer() 99 void InitRecvBuffer(int socketId) in InitRecvBuffer() argument 101 InitSocketBuf(socketId, SO_RCVBUF); in InitRecvBuffer() 119 … int socketId = TEMP_FAILURE_RETRY(socket(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0)); in TransferEvent() local 120 if (socketId < 0) { in TransferEvent() [all …]
|
D | event_server.h | 39 void InitSocket(int &socketId);
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
D | transport.cpp | 46 void Transport::InitRecvBuffer(int socketId) in InitRecvBuffer() argument 50 if (getsockopt(socketId, SOL_SOCKET, SO_SNDBUF, static_cast<void *>(&oldN), &oldOutSize) < 0) { in InitRecvBuffer() 56 …if (setsockopt(socketId, SOL_SOCKET, SO_SNDBUF, static_cast<void *>(&sendBuffSize), sizeof(int)) <… in InitRecvBuffer() 63 if (getsockopt(socketId, SOL_SOCKET, SO_SNDBUF, static_cast<void *>(&newN), &newOutSize) < 0) { in InitRecvBuffer() 80 … int socketId = TEMP_FAILURE_RETRY(socket(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0)); in SendToHiSysEventDataSource() local 81 if (socketId < 0) { in SendToHiSysEventDataSource() 87 InitRecvBuffer(socketId); in SendToHiSysEventDataSource() 91 sendRet = sendto(socketId, text.c_str(), text.size(), 0, in SendToHiSysEventDataSource() 96 close(socketId); in SendToHiSysEventDataSource() 102 close(socketId); in SendToHiSysEventDataSource()
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include/ |
D | transport.h | 33 void InitRecvBuffer(int socketId);
|
/base/startup/appspawn/standard/ |
D | appspawn_service.c | 606 int socketId = GetControlSocket(socketName); in AppSpawnCreateContent() local 607 APPSPAWN_LOGI("get socket form env %s socketId %d", socketName, socketId); in AppSpawnCreateContent() 608 APPSPAWN_CHECK_ONLY_EXPER(socketId <= 0, appSpawnContent->flags |= FLAGS_ON_DEMAND); in AppSpawnCreateContent() 612 info.socketId = socketId; in AppSpawnCreateContent()
|
/base/startup/init/services/loopevent/task/ |
D | le_streamtask.c | 164 int fd = info->socketId; in LE_CreateStreamServer() 165 if (info->socketId <= 0) { in LE_CreateStreamServer()
|
/base/startup/init/services/loopevent/include/ |
D | loop_event.h | 106 int socketId; member
|
/base/startup/init/interfaces/innerkits/control_fd/ |
D | control_fd_service.c | 155 info.socketId = -1; in CmdServiceInit()
|
/base/startup/init/test/unittest/init/ |
D | loopevent_unittest.cpp | 243 info.socketId = 1111; // 1111 is test fd in CreateSocketTest()
|
/base/startup/init/test/unittest/innerkits/ |
D | innerkits_unittest.cpp | 366 info.socketId = -1;
|