X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/4271ab433cd55bbd2612292bcf39e4dc3d7274f1..0907aa4037b12b6b88ee24495d4577a064d4f8db:/projects/stargazer/plugins/other/smux/utils.h diff --git a/projects/stargazer/plugins/other/smux/utils.h b/projects/stargazer/plugins/other/smux/utils.h new file mode 100644 index 00000000..52a3988b --- /dev/null +++ b/projects/stargazer/plugins/other/smux/utils.h @@ -0,0 +1,21 @@ +#ifndef __UTILS_H__ +#define __UTILS_H__ + +#include + +#include "stg/OBJECT_IDENTIFIER.h" +#include "stg/SMUX-PDUs.h" +#include "stg/GetResponse-PDU.h" + +bool String2OI(const std::string & str, OBJECT_IDENTIFIER_t * oi); +bool SendOpenPDU(int fd); +bool SendClosePDU(int fd); +bool SendRReqPDU(int fd); +SMUX_PDUs_t * RecvSMUXPDUs(int fd); +bool SendGetResponsePDU(int fd, GetResponse_PDU_t * getResponse); +bool SendGetResponseErrorPDU(int fd, + const PDU_t * getRequest, + int errorStatus, + int errorIndex); + +#endif