0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 23:51:04 +08:00

Added comment to sockaddr_storage

This commit is contained in:
Mário Kašuba 2016-03-19 14:49:22 +01:00
parent e38166cc1b
commit 75579fe7d9

View File

@ -435,6 +435,7 @@ bool zmq::select_t::is_retired_fd (const fd_entry_t &entry)
#if defined ZMQ_HAVE_WINDOWS
u_short zmq::select_t::get_fd_family (fd_t fd_)
{
// Use sockaddr_storage instead of sockaddr to accomodate differect structure sizes
sockaddr_storage addr = { 0 };
int addr_size = sizeof addr;