ConnectEx and SO_UPDATE_CONNECT_CONTEXT
- From: "Christopher Pisz" <someone@xxxxxxxxxxxxx>
- Date: Tue, 10 Apr 2007 14:26:20 -0500
In the doc for ConnectEx it says, " When the ConnectEx function returns, the
socket s is in the default state for a connected socket. The socket s does
not enable previously set properties or options until
SO_UPDATE_CONNECT_CONTEXT is set on the socket. Use the setsockopt function
to set the SO_UPDATE_CONNECT_CONTEXT option."
Yet in the doc for setsockopt it says," Updates the accepting socket with
the context of the listening socket. "
My question is: What am I updating a connected socket to? There is no
listening socket to pass in as a value to setsockopt. Accepted sockets have
listeners, not connecting ones. Is this call necesarry in the case of a
connected socket?
Thanx!
.
- Follow-Ups:
- Re: ConnectEx and SO_UPDATE_CONNECT_CONTEXT
- From: Arkady Frenkel
- Re: ConnectEx and SO_UPDATE_CONNECT_CONTEXT
- Prev by Date: Re: Should a socket client detect loss of network connection
- Next by Date: IOCP and WSAEventSelect, can they be friends?
- Previous by thread: Re: How to query DHCP Vendor Class Options?
- Next by thread: Re: ConnectEx and SO_UPDATE_CONNECT_CONTEXT
- Index(es):
Relevant Pages
|