Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (i = 0;
- i < (sizeof(known_packets) / sizeof(struct packet_answer));
- i++)
- {
- if (strstr(packet, known_packets[i].packet)) {
- log_message(1, "Received known command: %s\n",
- packet);
- if (known_packets[i].action) {
- len = strlen(known_packets[i].packet);
- known_packets[i].action(packet + len + 1,
- response);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement