ImagingTools Core SDK
Public Member Functions | List of all members
imtrest::ITransportabstract

#include <ITransport.h>

Inherits istd::IPolymorphic.

Inherited by imtclientgql::CWebSocketClientComp [virtual], imtrest::CHttpSender [virtual], imtrest::CSocketThread [virtual], imtrest::CTcpSender [virtual], imtrest::CUdpSender [virtual], and imtrest::CWebSocketSender [virtual].

Public Member Functions

virtual bool SendResponse (ConstResponsePtr &response) const =0
 
virtual bool SendRequest (ConstRequestPtr &request) const =0
 Send a request to the client.
 

Detailed Description

Interface describing the transport layer for sending responses and requests to the client.

Definition at line 17 of file ITransport.h.

Member Function Documentation

◆ SendRequest()

virtual bool imtrest::ITransport::SendRequest ( ConstRequestPtr &  request) const
pure virtual

Send a request to the client.

The transfer should be realized over the socket instance provided by the request object.

◆ SendResponse()

virtual bool imtrest::ITransport::SendResponse ( ConstResponsePtr &  response) const
pure virtual

Send a response to the client. The transfer should be realized over the socket instance provided by the response object.