An implementation of TransportFilter that traces to a System.IO.TextWriter. To use, instantiate and hen pass to Transport's setTransportFilter, for example:
More...
|
void | print (String prefix, byte[] data, int position, int length) |
| Function to print the raw data. More...
|
|
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) );
◆ TransportTraceFilter()
AMPS.Client.TransportTraceFilter.TransportTraceFilter |
( |
TextWriter |
writer_ | ) |
|
|
inline |
Construct a TransportTraceFilter to trace messages on writer_.
- Parameters
-
writer | A System.IO.TextWriter to trace on. |
◆ 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
-
data | The incoming data. |
position | The starting position of the data. |
length | The 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
-
data | The outgoing data. |
position | The starting position of the data. |
length | The 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
-
prefix | The prefix label passed to the function. This will be either incoming or outgoing. |
data | The bytebuffer of raw data to be printed. |
position | The starting position of the data. |
length | The length of the data. |
The documentation for this class was generated from the following file:
- AMPS.Client/TransportTraceFilter.cs