| 1253 | |
| 1254 | #ifdef CONF_FAMILY_UNIX |
| 1255 | void CServer::SendConnLoggingCommand(CONN_LOGGING_CMD Cmd, const NETADDR *pAddr) |
| 1256 | { |
| 1257 | if(!Config()->m_SvConnLoggingServer[0] || !m_ConnLoggingSocketCreated) |
| 1258 | return; |
| 1259 | |
| 1260 | // pack the data and send it |
| 1261 | unsigned char aData[23] = {0}; |
| 1262 | aData[0] = Cmd; |
| 1263 | mem_copy(&aData[1], &pAddr->type, 4); |
| 1264 | mem_copy(&aData[5], pAddr->ip, 16); |
| 1265 | mem_copy(&aData[21], &pAddr->port, 2); |
| 1266 | |
| 1267 | net_unix_send(m_ConnLoggingSocket, &m_ConnLoggingDestAddr, aData, sizeof(aData)); |
| 1268 | } |
| 1269 | #endif |
| 1270 | |
| 1271 | int CServer::DelClientCallback(int ClientId, const char *pReason, void *pUser) |
no test coverage detected