/* Drain all the messages currently in 'sock''s receive queue. */ int nl_sock_drain(struct nl_sock *sock) { int error = nl_sock_cow__(sock); if (error) { return error; } return drain_rcvbuf(sock->fd); }
/* Drain all the messages currently in 'sock''s receive queue. */ int nl_sock_drain(struct nl_sock *sock) { #ifdef _WIN32 return 0; #else return drain_rcvbuf(sock->fd); #endif }
/* Drain all the messages currently in 'sock''s receive queue. */ int nl_sock_drain(struct nl_sock *sock) { return drain_rcvbuf(sock->fd); }