|
HARDT - The Ham Radio DSP Toolkit
|
#include <hnetworkprocessor.h>


Public Member Functions | |
| HNetworkProcessor (const char *address, int dataPort, int commandPort, HWriter< T > *writer, int blocksize, bool *terminationToken) | |
| HNetworkProcessor (const char *address, int dataPort, int commandPort, int blocksize, bool *terminationToken) | |
| HNetworkProcessor (const char *address, int dataPort, int commandPort, HReader< T > *reader, int blocksize, bool *terminationToken) | |
| HNetworkProcessor (int dataPort, int commandPort, HWriter< T > *writer, int blocksize, bool *terminationToken) | |
| HNetworkProcessor (int dataPort, int commandPort, int blocksize, bool *terminationToken) | |
| HNetworkProcessor (int dataPort, int commandPort, HReader< T > *reader, int blocksize, bool *terminationToken) | |
| ~HNetworkProcessor () | |
| void | Run (long unsigned int blocks=0) |
| void | Halt () |
| bool | Command (H_COMMAND_CLASS commandClass, H_COMMAND_OPCODE commandOpcode, int16_t length, HCommandData data) |
Public Member Functions inherited from HProcessor< T > | |
| int | Read (T *dest, int blocksize) |
| int | Write (T *src, int blocksize) |
| HReader< T > * | GetReader () |
| HWriter< T > * | GetWriter () |
| bool | Command (H_COMMAND_CLASS commandClass, H_COMMAND_OPCODE commandOpcode, int32_t value) |
| bool | Command (H_COMMAND_CLASS commandClass, H_COMMAND_OPCODE commandOpcode, int16_t length, void *content) |
| bool | Command (H_COMMAND_CLASS commandClass, H_COMMAND_OPCODE commandOpcode, bool state) |
| HMetrics * | GetMetrics () |
Public Member Functions inherited from HWriterConsumer< T > | |
| HWriterConsumer< T > * | Consumer () |
Public Member Functions inherited from HObject | |
| HObject () | |
Additional Inherited Members | |
Protected Member Functions inherited from HProcessor< T > | |
| HProcessor (HWriter< T > *writer, HReader< T > *reader, size_t blocksize, bool *terminationToken) | |
| HProcessor (HReader< T > *reader, size_t blocksize, bool *terminationToken) | |
| ~HProcessor () | |
| void | SetWriter (HWriter< T > *writer) |
Protected Attributes inherited from HProcessor< T > | |
| HWriter< T > * | _writer |
| HReader< T > * | _reader |
A network enabled processor.
The processor will either read from a network connection and write to a local writer, or read from a local reader and write to the a network connection.
If you use the constructors without the 'address' variable, the processor acts like the server and awaits connections, while using the constructor with the address, the processor will attempt to connect to that address and either read from it or write to it.
| HNetworkProcessor< T >::HNetworkProcessor | ( | const char * | address, |
| int | dataPort, | ||
| int | commandPort, | ||
| HWriter< T > * | writer, | ||
| int | blocksize, | ||
| bool * | terminationToken | ||
| ) |
Construct a new HNetworkProcessor that acts as a client, reading samples from the remote endpoint and writing them to a local writer.
| HNetworkProcessor< T >::HNetworkProcessor | ( | const char * | address, |
| int | dataPort, | ||
| int | commandPort, | ||
| int | blocksize, | ||
| bool * | terminationToken | ||
| ) |
Construct a new HNetworkProcessor that acts as a client, reading samples from the remote endpoint and writing them to a local writer which must register by using the HWriterConsumer interface.
| HNetworkProcessor< T >::HNetworkProcessor | ( | const char * | address, |
| int | dataPort, | ||
| int | commandPort, | ||
| HReader< T > * | reader, | ||
| int | blocksize, | ||
| bool * | terminationToken | ||
| ) |
Construct a new HNetworkProcessor that acts as a client, reading samples from a local reader and writing them to the remote endpoint
| HNetworkProcessor< T >::HNetworkProcessor | ( | int | dataPort, |
| int | commandPort, | ||
| HWriter< T > * | writer, | ||
| int | blocksize, | ||
| bool * | terminationToken | ||
| ) |
Construct a new HNetworkProcessor that acts as a server, reading samples from the remote endpoint and writing them to a local writer.
| HNetworkProcessor< T >::HNetworkProcessor | ( | int | dataPort, |
| int | commandPort, | ||
| int | blocksize, | ||
| bool * | terminationToken | ||
| ) |
Construct a new HNetworkProcessor that acts as a server, reading samples from the remote endpoint and writing them to a local writer which must register by using the HWriterConsumer interface.
| HNetworkProcessor< T >::HNetworkProcessor | ( | int | dataPort, |
| int | commandPort, | ||
| HReader< T > * | reader, | ||
| int | blocksize, | ||
| bool * | terminationToken | ||
| ) |
Construct a new HNetworkProcessor that acts as a server, reading samples from a local reader and writing them to the remote endpoint.
| HNetworkProcessor< T >::~HNetworkProcessor |
Default destructor
|
inlinevirtual |
Send a command
Implements HProcessor< T >.
|
virtual |
Halt the processor. This will set the associated terminationToken to true
Reimplemented from HProcessor< T >.
|
virtual |
Run the processor
Reimplemented from HProcessor< T >.
1.8.17