| 42 | address_list_t blacklist; |
| 43 | |
| 44 | void clear_command_queue() |
| 45 | { |
| 46 | while(!received_command_queue.empty()) { |
| 47 | network_command_t *nwc = received_command_queue.remove_first(); |
| 48 | if (nwc) { |
| 49 | delete nwc; |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | #ifdef _WIN32 |
| 55 | #define RET_ERR_STR { FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM,NULL,WSAGetLastError(),MAKELANGID(LANG_NEUTRAL,SUBLANG_NEUTRAL),err_str,sizeof(err_str),NULL); err = err_str; return INVALID_SOCKET; } |
no test coverage detected