| 73 | } |
| 74 | |
| 75 | void 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 | |
| 90 | bool SocketProfilingConnection::WritePacket(const unsigned char* buffer, uint32_t length) |
| 91 | { |