Home
last modified time | relevance | path

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

/base/hiviewdfx/hiview/plugins/sysevent_source/
Devent_server.cpp81 void InitSocketBuf(int socketId, int optName) in InitSocketBuf() argument
85 …if (getsockopt(socketId, SOL_SOCKET, optName, static_cast<void *>(&bufferSizeOld), &sizeOfInt) < 0… in InitSocketBuf()
90 …if (setsockopt(socketId, SOL_SOCKET, optName, static_cast<void *>(&bufferSizeSet), sizeof(int)) < … in InitSocketBuf()
96 …if (getsockopt(socketId, SOL_SOCKET, optName, static_cast<void *>(&bufferSizeNew), &sizeOfInt) < 0… in InitSocketBuf()
102 void InitSendBuffer(int socketId) in InitSendBuffer() argument
104 InitSocketBuf(socketId, SO_SNDBUF); in InitSendBuffer()
107 void InitRecvBuffer(int socketId) in InitRecvBuffer() argument
109 InitSocketBuf(socketId, SO_RCVBUF); in InitRecvBuffer()
127 … int socketId = TEMP_FAILURE_RETRY(socket(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0)); in TransferEvent() local
128 if (socketId < 0) { in TransferEvent()
[all …]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dtransport.cpp50 void Transport::InitRecvBuffer(int socketId) in InitRecvBuffer() argument
54 if (getsockopt(socketId, SOL_SOCKET, SO_SNDBUF, static_cast<void *>(&oldN), &oldOutSize) < 0) { in InitRecvBuffer()
60 …if (setsockopt(socketId, SOL_SOCKET, SO_SNDBUF, static_cast<void *>(&sendBuffSize), sizeof(int)) <… in InitRecvBuffer()
67 if (getsockopt(socketId, SOL_SOCKET, SO_SNDBUF, static_cast<void *>(&newN), &newOutSize) < 0) { in InitRecvBuffer()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include/
Dtransport.h41 void InitRecvBuffer(int socketId);
/base/hiviewdfx/hiview/plugins/sysevent_source/include/
Devent_server.h39 void InitSocket(int &socketId);
/base/startup/appspawn/standard/
Dappspawn_service.c673 int socketId = GetControlSocket(socketName); in CreateAppSpawnServer() local
674 APPSPAWN_LOGI("get socket form env %{public}s socketId %{public}d", socketName, socketId); in CreateAppSpawnServer()
675 APPSPAWN_CHECK_ONLY_EXPER(socketId <= 0, appSpawnContent->flags |= FLAGS_ON_DEMAND); in CreateAppSpawnServer()
679 info.socketId = socketId; in CreateAppSpawnServer()
/base/startup/init/services/loopevent/task/
Dle_streamtask.c165 int fd = info->socketId; in LE_CreateStreamServer()
166 if (info->socketId <= 0) { in LE_CreateStreamServer()
/base/startup/init/services/loopevent/include/
Dloop_event.h106 int socketId; member
/base/startup/init/test/unittest/loopevent/
Dloopserver_unittest.cpp242 info.socketId = -1; in RunServer()
250 info.socketId = -1; in RunServer()
Dloopevent_unittest.cpp225 info.socketId = 1111; // 1111 is test fd in CreateSocketTest()
/base/startup/init/interfaces/innerkits/control_fd/
Dcontrol_fd_service.c153 info.socketId = -1; in CmdServiceInit()
/base/startup/init/test/unittest/innerkits/
Dinnerkits_unittest.cpp371 info.socketId = -1;