From: Dave Thomas Date: 2004-06-23T22:14:26+09:00 Subject: Re: I think I found the recvfrom problem!! On Jun 22, 2004, at 18:41, Yukihiro Matsumoto wrote: > First of all, patch seems OK. Please commit. Will do.. > According to this description, TCP socket (that must know their source > address) should give us the peer address even for non connection > oriented sockets. I feel like it's a bug in BSD socket layer. Does > anyone know if it's an unspecified behavior in POSIX socket > definition, that can be vary between platforms, or a bug in either > platform? Perhaps it's a performance thing? As you can always get the peer address of a TCP connection, there's no need to return it every time you receive data. I had a quick look through Stevens--he only used recvfrom for connectionless examples. Solaris seems to return a 'from' parameter for all connections, as does HPUX. So, I think I agree that it's a strangeness on the part of BSD. Cheers Dave