NetBurner 3.1
CommandBuffer.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
5
#ifndef _COMMAND_BUFFER_H_
6
#define _COMMAND_BUFFER_H_
7
#pragma once
8
9
#include "ThroughputConstants.h"
10
11
class
CommandBuffer
12
{
13
public
:
14
CommandBuffer(){}
15
~CommandBuffer(){}
16
17
bool
ReadChar(
int
fd );
18
void
ReadString(
int
fd );
19
void
ClearCommandBuffer();
20
21
inline
char ( &GetCommandBuffer() )[ COMMAND_BUFFER_SIZE ]{
return
m_commandBuffer; }
22
23
private
:
24
char
m_commandBuffer[ COMMAND_BUFFER_SIZE ];
25
};
26
27
#endif
/* _COMMAND_BUFFER_H_ */
examples
unitTest
src
tests
throughput
SerialToEtherThroughput
CommandBuffer.h
Generated by
1.8.14