]> git.stg.codes - stg.git/blob - projects/stargazer/plugins/other/smux/utils.h
Merge branch 'master' into full-month-stats
[stg.git] / projects / stargazer / plugins / other / smux / utils.h
1 #ifndef __UTILS_H__
2 #define __UTILS_H__
3
4 #include <string>
5
6 #include "stg/OBJECT_IDENTIFIER.h"
7 #include "stg/SMUX-PDUs.h"
8 #include "stg/GetResponse-PDU.h"
9
10 bool String2OI(const std::string & str, OBJECT_IDENTIFIER_t * oi);
11 std::string OI2String(OBJECT_IDENTIFIER_t * oi);
12 bool SendOpenPDU(int fd);
13 bool SendClosePDU(int fd);
14 bool SendRReqPDU(int fd);
15 SMUX_PDUs_t * RecvSMUXPDUs(int fd);
16 bool SendGetResponsePDU(int fd, GetResponse_PDU_t * getResponse);
17 bool SendGetResponseErrorPDU(int fd,
18                              const PDU_t * getRequest,
19                              int errorStatus,
20                              int errorIndex);
21
22 #endif