HARDT - The Ham Radio DSP Toolkit
hardt
libhardt
include
hnetworkreader.h
1
#ifndef __HNETWORKREADER_H
2
#define __HNETWORKREADER_H
3
4
#include <unistd.h>
5
9
template
<
class
T>
10
class
HNetworkReader
:
public
HReader
<T>
11
{
12
private
:
13
14
int
_socket;
15
16
public
:
17
19
HNetworkReader
();
20
22
HNetworkReader
(
int
socket);
23
25
void
SetSocket
(
int
socket);
26
28
int
Read
(T* dest,
size_t
blocksize);
29
31
bool
Command
(
HCommand
* command) {
32
// Command can go no further, transfering commands on the network is done by only by the HNetworkProcessor
33
return
true
;
34
}
35
};
36
37
#endif
HNetworkReader::Read
int Read(T *dest, size_t blocksize)
Definition:
hnetworkreader.cpp:27
HNetworkReader::HNetworkReader
HNetworkReader()
Definition:
hnetworkreader.cpp:11
HNetworkReader::SetSocket
void SetSocket(int socket)
Definition:
hnetworkreader.cpp:21
HNetworkReader
Definition:
hnetworkreader.h:10
HNetworkReader::Command
bool Command(HCommand *command)
Definition:
hnetworkreader.h:31
HReader
Definition:
hreader.h:24
HCommand
Definition:
hcommand.h:81
Generated by
1.8.17