]> git.stg.codes - stg.git/blob - projects/stargazer/plugins/other/smux/utils.h
Template for plugin creation added
[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 WaitPackets(int sd);
11 bool String2OI(const std::string & str, OBJECT_IDENTIFIER_t * oi);
12 std::string OI2String(OBJECT_IDENTIFIER_t * oi);
13 bool SendOpenPDU(int fd);
14 int SendClosePDU(int fd);
15 int SendRReqPDU(int fd);
16 SMUX_PDUs_t * RecvSMUXPDUs(int fd);
17 int SendGetResponsePDU(int fd, GetResponse_PDU_t * getResponse);
18 int SendGetResponseErrorPDU(int fd,
19                             const PDU_t * getRequest,
20                             int errorStatus,
21                             int errorIndex);
22
23 #endif