On Mon, 28 Aug 2023 13:37:11 +0000 "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" wrote: > > You seems to reffer Linux man, however, this patch calls > > I was referring to a known behavior. Your patch gets to call send(s,"",0), > which is technically a write call, and which in this case, falls into an > undefined > domain for its argument, and hence, may be expected to change without notice. > That's all I was referring to.
https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-send Calling send with a len parameter of zero is permissible and will be treated by implementations as successful. In such cases, send will return zero as a valid value. For message-oriented sockets, a zero-length transport datagram is sent. -- Takashi Yano <takashi.y...@nifty.ne.jp> -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple