Fabcoin Core  0.16.2
P2P Digital Currency
Classes | List of all members
InputRejecting< T > Class Template Reference

Base class for input rejecting filters. More...

#include <simple.h>

Inheritance diagram for InputRejecting< T >:
[legend]
Collaboration diagram for InputRejecting< T >:
[legend]

Classes

struct  InputRejected
 

Public Member Functions

INPUT
size_t Put2 (const byte *inString, size_t length, int messageEnd, bool blocking)
 Input a byte array for processing. More...
 
SIGNALS
bool IsolatedFlush (bool hardFlush, bool blocking)
 
bool IsolatedMessageSeriesEnd (bool blocking)
 
size_t ChannelPut2 (const std::string &channel, const byte *inString, size_t length, int messageEnd, bool blocking)
 
bool ChannelMessageSeriesEnd (const std::string &channel, int messageEnd, bool blocking)
 

Detailed Description

template<class T>
class InputRejecting< T >

Base class for input rejecting filters.

Template Parameters
Tthe class or type

T should be a BufferedTransformation derived class

Definition at line 121 of file simple.h.

Member Function Documentation

template<class T>
bool InputRejecting< T >::ChannelMessageSeriesEnd ( const std::string &  channel,
int  messageEnd,
bool  blocking 
)
inline

Definition at line 150 of file simple.h.

template<class T>
size_t InputRejecting< T >::ChannelPut2 ( const std::string &  channel,
const byte inString,
size_t  length,
int  messageEnd,
bool  blocking 
)
inline

Definition at line 148 of file simple.h.

template<class T>
bool InputRejecting< T >::IsolatedFlush ( bool  hardFlush,
bool  blocking 
)
inline

Definition at line 144 of file simple.h.

template<class T>
bool InputRejecting< T >::IsolatedMessageSeriesEnd ( bool  blocking)
inline

Definition at line 146 of file simple.h.

template<class T>
size_t InputRejecting< T >::Put2 ( const byte inString,
size_t  length,
int  messageEnd,
bool  blocking 
)
inline

Input a byte array for processing.

Parameters
inStringthe byte array to process
lengththe size of the string, in bytes
messageEndmeans how many filters to signal MessageEnd() to, including this one
blockingspecifies whether the object should block when processing input
Exceptions
InputRejected
Returns
the number of bytes that remain in the block (i.e., bytes not processed)

Internally, the default implementation throws InputRejected.

Definition at line 138 of file simple.h.


The documentation for this class was generated from the following file: