]> git.stg.codes - stg.git/blob - projects/stargazer/plugins/other/smux/utils.h
Assignement and comparsion operators removed from admin and tariff iface
[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 int SendClosePDU(int fd);
14 int SendRReqPDU(int fd);
15 SMUX_PDUs_t * RecvSMUXPDUs(int fd);
16 int SendGetResponsePDU(int fd, GetResponse_PDU_t * getResponse);
17 int SendGetResponseErrorPDU(int fd,
18                             const PDU_t * getRequest,
19                             int errorStatus,
20                             int errorIndex);
21
22 #endif