Home
last modified time | relevance | path

Searched refs:socketId (Results 1 – 10 of 10) sorted by relevance

/base/hiviewdfx/hiview/core/
Devent_server.cpp73 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 …]
Devent_server.h39 void InitSocket(int &socketId);
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dtransport.cpp46 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/
Dtransport.h33 void InitRecvBuffer(int socketId);
/base/startup/appspawn/standard/
Dappspawn_service.c606 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/
Dle_streamtask.c164 int fd = info->socketId; in LE_CreateStreamServer()
165 if (info->socketId <= 0) { in LE_CreateStreamServer()
/base/startup/init/services/loopevent/include/
Dloop_event.h106 int socketId; member
/base/startup/init/interfaces/innerkits/control_fd/
Dcontrol_fd_service.c155 info.socketId = -1; in CmdServiceInit()
/base/startup/init/test/unittest/init/
Dloopevent_unittest.cpp243 info.socketId = 1111; // 1111 is test fd in CreateSocketTest()
/base/startup/init/test/unittest/innerkits/
Dinnerkits_unittest.cpp366 info.socketId = -1;