[Common-dev] Fwd: Re: Crash in CHXSocket. (when writing to a closed socket.)

[Common-dev] Fwd: Re: Crash in CHXSocket. (when writing to a closed socket.)

Tom Marshall tmarshall at helixcommunity.org
Thu Sep 23 17:36:13 PDT 2004


On Thu, Sep 23, 2004 at 04:36:11PM -0700, Liam Murray wrote:
> 
> This avoids the crash. How does Write() behave when you write to a closed 
> socket? Does it return an error code? It seems writing after close should 
> be an error.

I suspect that write(), and therefore hx_write(), would return either
(WSA)EBADF or (WSA)ENOTSOCK.  But I haven't actually tried.

-- 
Give a man a fish, and you feed him for a day.  Tell him he should learn how
to fish himself, and he'll hate you for a lifetime.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.helixcommunity.org/pipermail/common-dev/attachments/20040923/6b615780/attachment.bin


More information about the Common-dev mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.