Program Listing for File endpoint.h
↰ Return to documentation for file (include\network\endpoint.h
)
/******************************************************************************
© Intel Corporation.
This software and the related documents are Intel copyrighted materials,
and your use of them is governed by the express license under which they
were provided to you ("License"). Unless the License provides otherwise,
you may not use, modify, copy, publish, distribute, disclose or transmit
this software or the related documents without Intel's prior written
permission.
This software and the related documents are provided as is, with no express
or implied warranties, other than those that are expressly stated in the
License.
******************************************************************************/
#pragma once
#include <cstdint>
namespace gpa {
namespace network {
class Endpoint
{
public:
virtual ~Endpoint();
virtual bool WaitRead(uint64_t readLengthInBytes) = 0;
virtual bool IsWaitingOnRead() = 0;
virtual uint64_t Read(void* destBuffer, uint64_t readLengthInBytes) = 0;
virtual uint64_t Write(void const* srcBuffer, uint64_t writeLengthInBytes) = 0;
virtual Endpoint* Accept(uint64_t timeoutMS) = 0;
virtual void Shutdown() = 0;
virtual uint64_t Handle() const = 0;
virtual uint64_t EventHandle() const = 0;
virtual bool IsEndpointBroken() const = 0;
};
} // namespace network
} // namespace gpa