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) );
More...
|
void | print (String prefix, byte[] data, int position, int length) |
|
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 |
Called just after raw data is recieved from the AMPS instance.
- Parameters
-
data | A byte array containing raw data to be sent to the AMPS instance. |
position | The position in data where the raw data begins |
length | The length of the raw data to be sent. |
Implements TransportFilter.
◆ outgoing()
void AMPS.Client.TransportTraceFilter.outgoing |
( |
byte[] |
data, |
|
|
int |
position, |
|
|
int |
length |
|
) |
| |
|
inline |
Called when (typically just before) raw data is sent to the AMPS instance.
- Parameters
-
data | A byte array containing raw data to be sent to the AMPS instance. |
position | The position in data where the raw data begins |
length | The length of the raw data to be sent. |
Implements TransportFilter.
The documentation for this class was generated from the following file:
- AMPS.Client/TransportTraceFilter.cs