msg->msg_flags = (int)wsamsg.dwFlags;
// all flags that fit into dwFlags also fit into msg_flags (see above)
- // XXX debug, remove
- {
- char where[64];
- getnameinfo(msg->msg_name, msg->msg_namelen, where, sizeof(where), NULL, 0, NI_NUMERICHOST);
- catta_log_debug("recvmsg: %u bytes from %s", (unsigned int)bytesrcvd, where);
- }
return bytesrcvd;
}
return -1;
}
- // XXX debug, remove
- {
- char where[64];
- getnameinfo(msg->msg_name, msg->msg_namelen, where, sizeof(where), NULL, 0, NI_NUMERICHOST);
- catta_log_debug("sendmsg: %u bytes to %s", (unsigned int)bytessent, where);
- }
return bytessent;
}