HARDT - The Ham Radio DSP Toolkit
hnetworkwriter.h
1 #ifndef __HNETWORKWRITER_H
2 #define __HNETWORKWRITER_H
3 
4 #include <sys/socket.h>
5 
6 #include "hwriter.h"
7 
11 template <class T>
12 class HNetworkWriter : public HWriter<T>
13 {
14  private:
15 
16  int _socket;
17 
18  public:
19 
22 
24  HNetworkWriter(int socket);
25 
27  void SetSocket(int socket);
28 
30  int Write(T* src, size_t blocksize);
31 
33  bool Command(HCommand* command) {
34  // Command can go no further, transfering commands on the network is done by only by the HNetworkProcessor
35  return true;
36  }
37 };
38 
39 #endif
HNetworkWriter::SetSocket
void SetSocket(int socket)
Definition: hnetworkwriter.cpp:21
HNetworkWriter::HNetworkWriter
HNetworkWriter()
Definition: hnetworkwriter.cpp:11
HNetworkWriter::Write
int Write(T *src, size_t blocksize)
Definition: hnetworkwriter.cpp:27
HWriter
Definition: hwriter.h:10
HNetworkWriter::Command
bool Command(HCommand *command)
Definition: hnetworkwriter.h:33
HCommand
Definition: hcommand.h:81
HNetworkWriter
Definition: hnetworkwriter.h:12