MCPcopy Create free account
hub / github.com/ARM-software/armnn / Close

Method Close

profiling/client/src/SocketProfilingConnection.cpp:75–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void SocketProfilingConnection::Close()
76{
77#if !defined(ARMNN_DISABLE_SOCKETS)
78 if (arm::pipe::Close(m_Socket[0].fd) != 0)
79 {
80 throw arm::pipe::SocketConnectionException(
81 std::string("SocketProfilingConnection: Cannot close stream socket: ") + strerror(errno),
82 m_Socket[0].fd,
83 errno);
84 }
85
86 memset(m_Socket, 0, sizeof(m_Socket));
87#endif
88}
89
90bool SocketProfilingConnection::WritePacket(const unsigned char* buffer, uint32_t length)
91{

Callers 1

StopMethod · 0.45

Calls 1

CloseFunction · 0.85

Tested by

no test coverage detected