MCPcopy Create free account
hub / github.com/SIPp/sipp / SendingMessage

Class SendingMessage

include/message.hpp:128–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126} MessageCompType;
127
128class SendingMessage
129{
130public:
131 SendingMessage(scenario* msg_scenario, const char* msg, bool skip_sanity = false);
132 ~SendingMessage();
133
134 struct MessageComponent *getComponent(int);
135 int numComponents();
136
137 char *getMethod();
138 int getCode();
139
140 bool isResponse();
141 bool isAck();
142 bool isCancel();
143
144 static void parseAuthenticationKeyword(scenario *msg_scenario, struct MessageComponent *dst, char *keyword);
145 static void freeMessageComponent(struct MessageComponent *comp);
146private:
147 std::vector <struct MessageComponent *> messageComponents;
148
149 char *method = nullptr;
150 int code = 0;
151
152 bool ack = false;
153 bool cancel = false;
154 bool response = false;
155
156 scenario *msg_scenario = nullptr;
157
158 // Get parameters from a [keyword]
159 static void getQuotedParam(char * dest, char * src, int * len);
160 static void getHexStringParam(char * dest, char * src, int * len);
161 static void getKeywordParam(char * src, const char * param, char * output);
162};
163
164/* Custom Keyword Function Type. */
165struct MessageComponent;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected