int rtpp_anetio_sendto(struct rtpp_anetio_cf *netio_cf, int sock, const void *msg, \ size_t msg_len, int flags, const struct sockaddr *sendto, socklen_t tolen) { struct rtpp_wi *wi; wi = rtpp_wi_malloc(sock, msg, msg_len, flags, sendto, tolen); if (wi == NULL) { return (-1); } #ifdef RTPP_DEBUG wi->debug = 1; rtpp_log_write(RTPP_LOG_DBUG, netio_cf->args[0].glog, "rtpp_anetio_sendto: malloc(%d, %p, %d, %d, %p, %d) = %p", sock, msg, msg_len, flags, sendto, tolen, wi); rtpp_log_write(RTPP_LOG_DBUG, netio_cf->args[0].glog, "rtpp_anetio_sendto: sendto(%d, %p, %d, %d, %p, %d)", wi->sock, wi->msg, wi->msg_len, wi->flags, wi->sendto, wi->tolen); #endif rtpp_queue_put_item(wi, netio_cf->args[0].out_q); return (0); }
int rtpp_anetio_sendto(struct rtpp_anetio_cf *netio_cf, int sock, const void *msg, \ size_t msg_len, int flags, const struct sockaddr *sendto, socklen_t tolen) { struct rtpp_wi *wi; wi = rtpp_wi_malloc(sock, msg, msg_len, flags, sendto, tolen); if (wi == NULL) { return (-1); } #if RTPP_DEBUG_netio >= 1 wi->debug = 1; wi->log = netio_cf->args[0].glog; CALL_SMETHOD(wi->log->rcnt, incref); #if RTPP_DEBUG_netio >= 2 RTPP_LOG(netio_cf->args[0].glog, RTPP_LOG_DBUG, "malloc(%d, %p, %d, %d, %p, %d) = %p", sock, msg, msg_len, flags, sendto, tolen, wi); RTPP_LOG(netio_cf->args[0].glog, RTPP_LOG_DBUG, "sendto(%d, %p, %d, %d, %p, %d)", wi->sock, wi->msg, wi->msg_len, wi->flags, wi->sendto, wi->tolen); #endif #endif rtpp_queue_put_item(wi, netio_cf->args[0].out_q); return (0); }