In a networking socket between two host, recv()
return value will be 0 when the peer in the other end has performed an orderly shutdown.
what is the meaning of recv()
returning 0 in a netlink socket(to communicate between userspace and kernel) listening in userspace?
for example, in user space listening for netlink message from kernel of type RTM_NEWLINK anf family NETLINK_ROUTE.