aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/SocketProfilingConnection.hpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2022-03-23 23:01:26 +0000
committerJim Flynn <jim.flynn@arm.com>2022-03-23 23:43:35 +0000
commit3e9bc19ad523361e6b18057849e30c0c48183915 (patch)
treeb7b012a9734ce39d054fc5d92302780fd838e5c8 /src/profiling/SocketProfilingConnection.hpp
parent277618302d0f131eac0b6ac2015dd3eb09aa6ff9 (diff)
downloadarmnn-3e9bc19ad523361e6b18057849e30c0c48183915.tar.gz
IVGCVSW-6706 Create the libpipeClient library
Change-Id: I2368aade38ad3808fab55d8a86cd659d4e95d91e Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/SocketProfilingConnection.hpp')
-rw-r--r--src/profiling/SocketProfilingConnection.hpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/profiling/SocketProfilingConnection.hpp b/src/profiling/SocketProfilingConnection.hpp
deleted file mode 100644
index 52616c9a27..0000000000
--- a/src/profiling/SocketProfilingConnection.hpp
+++ /dev/null
@@ -1,42 +0,0 @@
-//
-// Copyright © 2019 Arm Ltd and Contributors. All rights reserved.
-// SPDX-License-Identifier: MIT
-//
-
-#include "IProfilingConnection.hpp"
-
-#include <common/include/NetworkSockets.hpp>
-
-#pragma once
-
-namespace arm
-{
-namespace pipe
-{
-
-class SocketProfilingConnection : public IProfilingConnection
-{
-public:
- SocketProfilingConnection();
- bool IsOpen() const final;
- void Close() final;
- bool WritePacket(const unsigned char* buffer, uint32_t length) final;
- arm::pipe::Packet ReadPacket(uint32_t timeout) final;
-
-private:
-
- // Read a full packet from the socket.
- arm::pipe::Packet ReceivePacket();
-
-#ifndef __APPLE__
- // To indicate we want to use an abstract UDS ensure the first character of the address is 0.
- const char* m_GatorNamespace = "\0gatord_namespace";
-#else
- // MACOSX does not support abstract UDS
- const char* m_GatorNamespace = "/tmp/gatord_namespace";
-#endif
- arm::pipe::PollFd m_Socket[1]{};
-};
-
-} // namespace pipe
-} // namespace arm