71 int main(
int argc,
char **argv) {
81 for (i = 1; i < argc; i++) {
91 warning(0,
"Unpacking PDU %s failed", argv[i]);
94 debug(
"test", 0,
"PDU %s:", argv[i]);
98 warning(0,
"Repacking PDU %s failed", argv[i]);
102 error(0,
"Repacking PDU %s changed it", argv[i]);
103 debug(
"test", 0,
"Original:");
105 debug(
"test", 0,
"New:");
109 if (pdu->
type == Invoke) {
110 wsp_data = pdu->
u.Invoke.user_data;
111 }
else if (pdu->
type == Result) {
112 wsp_data = pdu->
u.Result.user_data;
120 warning(0,
"Unpacking WSP data in %s failed", argv[i]);
127 warning(0,
"Repacking WSP data in %s failed", argv[i]);
131 error(0,
"Repacking WSP data in %s changed it",
133 debug(
"test", 0,
"Original:");
135 debug(
"test", 0,
"New:");
void error(int err, const char *fmt,...)
int main(int argc, char **argv)
Octstr * wsp_pdu_pack(WSP_PDU *pdu)
void wtp_pdu_dump(WTP_PDU *pdu, int level)
#define octstr_duplicate(ostr)
#define octstr_dump(ostr, level,...)
WTP_PDU * wtp_pdu_unpack(Octstr *data)
void warning(int err, const char *fmt,...)
void octstr_destroy(Octstr *ostr)
void wsp_pdu_destroy(WSP_PDU *pdu)
Octstr * octstr_read_file(const char *filename)
void debug(const char *place, int err, const char *fmt,...)
void gwlib_shutdown(void)
Octstr * wtp_pdu_pack(WTP_PDU *pdu)
void wtp_pdu_destroy(WTP_PDU *pdu)
void wsp_pdu_dump(WSP_PDU *pdu, int level)
WSP_PDU * wsp_pdu_unpack(Octstr *data)
int octstr_compare(const Octstr *ostr1, const Octstr *ostr2)