Home
last modified time | relevance | path

Searched refs:connFd (Results 1 – 4 of 4) sorted by relevance

/openbmc/phosphor-ipmi-flash/tools/test/
H A Dtools_net_unittest.cpp78 .WillOnce(Return(connFd)); in expectConnection()
79 EXPECT_CALL(sysMock, close(connFd)).WillOnce(Return(0)); in expectConnection()
81 connect(connFd, reinterpret_cast<struct sockaddr*>(&sa), in expectConnection()
99 static constexpr int connFd = 7; member in host_tool::__anon925496610111::NetHandleTest
135 .WillOnce(Return(connFd)); in TEST_F()
136 EXPECT_CALL(sysMock, close(connFd)).WillOnce(Return(0)); in TEST_F()
138 connect(connFd, reinterpret_cast<struct sockaddr*>(&sa), in TEST_F()
151 EXPECT_CALL(sysMock, sendfile(connFd, inFd, Pointee(0), _)) in TEST_F()
167 sendfile(connFd, inFd, Pointee(0), Gt(fakeFileSize))) in TEST_F()
170 EXPECT_CALL(sysMock, sendfile(connFd, inFd, Pointee(fakeFileSize), in TEST_F()
[all …]
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/
H A Dnet_handler.cpp64 connFd.reset(); in close()
72 if (!connFd) in copyFrom()
95 connFd.reset(::accept(*listenFd, nullptr, nullptr)); in copyFrom()
96 if (*connFd < 0) in copyFrom()
99 (void)connFd.release(); in copyFrom()
105 if (setsockopt(*connFd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) in copyFrom()
118 ret = read(*connFd, data.data() + bytesRead, length - bytesRead); in copyFrom()
H A Dnet_handler.hpp22 NetDataHandler() : listenFd(std::nullopt), connFd(std::nullopt) {} in NetDataHandler()
41 Fd connFd; member in ipmi_flash::NetDataHandler
/openbmc/phosphor-ipmi-flash/tools/
H A Dnet.cpp68 Fd connFd(std::nullopt, sys); in sendContents() local
88 connFd.reset(sys->socket(addr->ai_family, addr->ai_socktype, in sendContents()
90 if (*connFd == -1) in sendContents()
93 if (sys->connect(*connFd, addr->ai_addr, addr->ai_addrlen) != -1) in sendContents()
129 bytesSent = sys->sendfile(*connFd, *inputFd, &offset, blockSize); in sendContents()
146 CHECK_ERRNO(sys->send(*connFd, buf.data(), left, 0), in sendContents()