AMPS C# Client  5.3.5.0
AMPS C# Client for .NET
AMPS.Client.TransportTraceFilter Class Reference

An implementation of TransportFilter that traces to a System.IO.TextWriter. To use, instantiate and hen pass to Transport's setTransportFilter, for example: More...

+ Inheritance diagram for AMPS.Client.TransportTraceFilter:

Public Member Functions

 TransportTraceFilter (TextWriter writer_)
 Construct a TransportTraceFilter to trace messages on writer_. More...
 
void outgoing (byte[] data, int position, int length)
 Method to call the prrint() method with the outgoing prefix for printing raw data. More...
 
void incoming (byte[] data, int position, int length)
 Method to call the print() method with the incoming prefix for printing raw data. More...
 

Protected Member Functions

void print (String prefix, byte[] data, int position, int length)
 Function to print the raw data. More...
 

Detailed Description

An implementation of TransportFilter that traces to a System.IO.TextWriter. To use, instantiate and hen pass to Transport's setTransportFilter, for example:

Client client = new Client(...); client.connect(...); client.getTransport.setTransportFilter( new TransportTraceFilter(Console.out) );

Constructor & Destructor Documentation

◆ TransportTraceFilter()

AMPS.Client.TransportTraceFilter.TransportTraceFilter ( TextWriter  writer_)
inline

Construct a TransportTraceFilter to trace messages on writer_.

Parameters
writerA System.IO.TextWriter to trace on.

Member Function Documentation

◆ incoming()

void AMPS.Client.TransportTraceFilter.incoming ( byte[]  data,
int  position,
int  length 
)
inline

Method to call the print() method with the incoming prefix for printing raw data.

Parameters
dataThe incoming data.
positionThe starting position of the data.
lengthThe length of the data.

Implements TransportFilter.

◆ outgoing()

void AMPS.Client.TransportTraceFilter.outgoing ( byte[]  data,
int  position,
int  length 
)
inline

Method to call the prrint() method with the outgoing prefix for printing raw data.

Parameters
dataThe outgoing data.
positionThe starting position of the data.
lengthThe length of the data.

Implements TransportFilter.

◆ print()

void AMPS.Client.TransportTraceFilter.print ( String  prefix,
byte[]  data,
int  position,
int  length 
)
inlineprotected

Function to print the raw data.

Parameters
prefixThe prefix label passed to the function. This will be either incoming or outgoing.
dataThe bytebuffer of raw data to be printed.
positionThe starting position of the data.
lengthThe length of the data.

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