RE: Difference between BSD sockets and Linux sockets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Matti Aarnio [mailto:matti.aarnio@xxxxxxxxxxx] 
> Sent: Wednesday, November 07, 2007 11:10 AM
> To: Jeff Haran
> Cc: Mateus Interciso; Matti Aarnio; linux-net@xxxxxxxxxxxxxxx
> Subject: Re: Difference between BSD sockets and Linux sockets
> 
> On Wed, Nov 07, 2007 at 10:25:37AM -0800, Jeff Haran wrote:
> ...
> > Some other potential differences that come to mind. Don't 
> quote me on
> > this, just going from memory.
> > 
> > The flags parameter to send() in linux has some bits that 
> might not be
> > there in BSD (e.g. EPIPE).
> 
>   man 2 send
> 
> The EPIPE is possible error value, there is another bit for  flags
> parameter.

Oops. Make that bit MSG_NOSIGNAL, which means a close on the peer gets
you an EPIPE back in errno rather than a SIGPIPE signal.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux