| 1417 | } |
| 1418 | |
| 1419 | void HandleSendTo(const error_code & ec, size_t sent, CUDPData * recdata) |
| 1420 | { |
| 1421 | if (ec) { |
| 1422 | AddDebugLogLineN(logAsio, CFormat("UDP HandleSendToError %s") % ec.message()); |
| 1423 | } else if (sent != recdata->size) { |
| 1424 | AddDebugLogLineN(logAsio, CFormat("UDP HandleSendToError tosend: %d sent %d") % recdata->size % sent); |
| 1425 | } |
| 1426 | if (m_muleSocket == NULL) { |
| 1427 | AddDebugLogLineN(logAsio, "UDP HandleSendToError no handler"); |
| 1428 | } else { |
| 1429 | AddDebugLogLineF(logAsio, CFormat("UDP HandleSendTo %d to %s") % sent % recdata->ipadr.IPAddress()); |
| 1430 | CoreNotify_UDPSocketSend(m_muleSocket); |
| 1431 | } |
| 1432 | delete recdata; |
| 1433 | } |
| 1434 | |
| 1435 | // |
| 1436 | // Other functions |
no test coverage detected