repo.or.cz
/
remote
/
remote-mci.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix syntax error in the remote.sh UDEV script
[remote/remote-mci.git]
/
protocols
/
Message.h
blob
39d52048f81bd878ccb5bb50b04fb2ec8bce0bf7
1
#ifndef MESSAGE_H_
2
#define MESSAGE_H_
3
#include
"tcputil.h"
4
#include
"BaseMsg.h"
5
#include <netinet/in.h>
6
#include <errno.h>
7
8
namespace
remote
{
namespace
protocols
{
9
10
class
Message
11
{
12
public
:
13
Message
();
14
~
Message
();
15
bool
nonBlockingRecv
(
int
fd
);
16
// void recvMsg(int fd,BaseMsg& msg);
17
void
sendMsg
(
int
fd
,
BaseMsg
&
msg
);
18
uint32_t
getLength
();
19
uint8_t
*
getData
();
20
protected
:
21
uint32_t
recvLen
;
22
uint32_t
datalen
;
23
uint8_t
*
data
;
24
};
25
26
}}
27
28
#endif
/*MESSAGE_H_*/