| 39 | /************************ Class Constructor *************************/ |
| 40 | |
| 41 | message::message(int index, const char *desc) |
| 42 | { |
| 43 | this->index = index; |
| 44 | this->desc = desc; |
| 45 | pause_distribution = nullptr; // delete on exit |
| 46 | pause_variable = -1; |
| 47 | pause_desc = nullptr; // free on exit |
| 48 | sessions = 0; |
| 49 | bShouldRecordRoutes = 0; |
| 50 | bShouldAuthenticate = 0; |
| 51 | |
| 52 | send_scheme = nullptr; // delete on exit |
| 53 | retrans_delay = 0; |
| 54 | timeout = 0; |
| 55 | |
| 56 | recv_response = nullptr; // free on exit |
| 57 | recv_request = nullptr; // free on exit |
| 58 | optional = 0; |
| 59 | advance_state = true; |
| 60 | regexp_match = 0; |
| 61 | regexp_compile = nullptr; // regfree (if not nullptr) and free on exit |
| 62 | |
| 63 | /* Anyway */ |
| 64 | start_rtd = 0; |
| 65 | stop_rtd = 0; |
| 66 | repeat_rtd = 0; |
| 67 | lost = -1; |
| 68 | crlf = 0; |
| 69 | ignoresdp = false; |
| 70 | hide = 0; |
| 71 | display_str = nullptr; // free on exit |
| 72 | test = -1; |
| 73 | condexec = -1; |
| 74 | condexec_inverse = false; |
| 75 | chance = 0;/* meaning always */ |
| 76 | next = -1; |
| 77 | nextLabel = nullptr; // free on exit |
| 78 | on_timeout = -1; |
| 79 | onTimeoutLabel = nullptr; // free on exit |
| 80 | timewait = false; |
| 81 | |
| 82 | /* 3pcc extended mode */ |
| 83 | peer_dest = nullptr; // free on exit |
| 84 | peer_src = nullptr; // free on exit |
| 85 | |
| 86 | /* Statistics */ |
| 87 | nb_sent = 0; |
| 88 | nb_recv = 0; |
| 89 | nb_sent_retrans = 0; |
| 90 | nb_recv_retrans = 0; |
| 91 | nb_timeout = 0; |
| 92 | nb_unexp = 0; |
| 93 | nb_lost = 0; |
| 94 | counter = 0; |
| 95 | |
| 96 | M_actions = nullptr; // delete on exit |
| 97 | |
| 98 | M_type = 0; |
nothing calls this directly
no outgoing calls
no test coverage detected