Definition: protocolHandler.hpp:59
Execution context passed to functions for referencing resources and to define authorization dependend...
Definition: execContext.hpp:47
boost::shared_ptr< LocalEndpoint > LocalEndpointR
Definition: connectionEndpoint.hpp:163
virtual void getInputBlock(void *&begin, std::size_t &maxBlockSize)=0
Get the input block request (READ operation)
proc::ExecContext * m_execContext
Definition: protocolHandler.hpp:148
virtual void setPeer(const net::RemoteEndpointR &)
Set the client connection end point.
Definition: protocolHandler.hpp:70
std::string m_lastError
Definition: protocolHandler.hpp:147
Definition: commandHandler.hpp:59
virtual void setLocalEndPoint(const net::LocalEndpointR &)
Set the local connection end point.
Definition: protocolHandler.hpp:74
boost::shared_ptr< ProtocolHandlerUnit > ProtocolHandlerUnitR
Protocol handler unit reference.
Definition: protocolHandler.hpp:167
virtual void getOutput(const void *&begin, std::size_t &bytesToTransfer)=0
Get the next output chunk from the command handler (WRITE operation)
virtual void setOutputBuffer(void *buf, std::size_t size, std::size_t pos)=0
Define the input buffer for processing the command.
virtual void setArgumentString(const std::string &)
Pass arguments to protocol handler.
Definition: protocolHandler.hpp:141
virtual ProtocolHandler * createProtocolHandler()=0
Create an instance of this protocol handler.
void setExecContext(proc::ExecContext *c)
Pass the reference to the execution context to the command handler.
Definition: protocolHandler.hpp:128
void setLastError(const std::string &msg)
Set the last error message of command execution to be returned to the client.
Definition: protocolHandler.hpp:121
virtual const char * interruptDataSessionMarker() const
Get the termination marker to send for an abort of a running data session.
Definition: protocolHandler.hpp:144
virtual void setInputBuffer(void *buf, std::size_t allocsize)=0
Define the input buffer for processing the command.
boost::shared_ptr< RemoteEndpoint > RemoteEndpointR
Definition: connectionEndpoint.hpp:208
proc::ExecContext * execContext()
Get the reference to the processor provider.
Definition: protocolHandler.hpp:135
Definition: commandHandler.hpp:60
ProtocolHandler()
Default constructor.
Definition: protocolHandler.hpp:62
Protocol handler interface.
Definition: protocolHandler.hpp:52
virtual void putEOF()
Tell the protocol handler that EOF has been reached, if implemented.
Definition: protocolHandler.hpp:97
virtual ~ProtocolHandler()
Destructor.
Definition: protocolHandler.hpp:66
Definition: protocolHandler.hpp:58