Click here to Skip to main content
15,878,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how do i Detect if an external program has finished excuting(shellexec)? Pin
cmk30-Jun-03 20:52
cmk30-Jun-03 20:52 
GeneralChecksum Pin
Toni7830-Jun-03 19:27
Toni7830-Jun-03 19:27 
GeneralRe: Checksum Pin
Michael Dunn30-Jun-03 19:52
sitebuilderMichael Dunn30-Jun-03 19:52 
GeneralRe: Checksum Pin
Toni7830-Jun-03 20:04
Toni7830-Jun-03 20:04 
GeneralRe: Checksum Pin
kakan30-Jun-03 20:03
professionalkakan30-Jun-03 20:03 
GeneralRe: Checksum Pin
Toni7830-Jun-03 20:15
Toni7830-Jun-03 20:15 
GeneralRe: Checksum Pin
kakan30-Jun-03 20:19
professionalkakan30-Jun-03 20:19 
GeneralWin2K : AcceptEx() & getpeername() Pin
cmk30-Jun-03 17:52
cmk30-Jun-03 17:52 
The doc's for AcceptEx() state that :

On _WindowsXP_ or later, once the AcceptEx function completes and the SO_UPDATE_ACCEPT_CONTEXT option is set on the accepted socket, the local address associated with the accepted socket can also be retrieved using the getsockname function. Likewise, the remote address associated with the accepted socket can be retrieved using the getpeername function.

Great, but what do i do on Win2K ?
After setting SO_UPDATE_ACCEPT_CONTEXT getsockname() works but getpeername() doesn't - in fact it doesn't even give an error, just acts as a no-op.
I don't want to save the remote address from GetAcceptExSockaddrs() as state if i can get/set it in the socket.

I would like to be able to do one of the following :

1. Be able to set the peer address in the accepted socket to the remote address obtained from GetAcceptExSockaddrs() - is there a low-level way to do this ?

2. Use a function(s) other than getpeername() that will also give me the peer address.

3. Give up programming and find a remote tropical island where the most advanced piece of technology i have to deal with is the ice-cooler that's keeping my beer cold.

Any suggestions ?


...cmk
GeneralRe: Win2K : AcceptEx() & getpeername() Pin
Ryan Binns30-Jun-03 18:52
Ryan Binns30-Jun-03 18:52 
GeneralRe: Win2K : AcceptEx() & getpeername() Pin
cmk30-Jun-03 21:06
cmk30-Jun-03 21:06 
GeneralRe: Win2K : AcceptEx() & getpeername() Pin
Ryan Binns30-Jun-03 22:14
Ryan Binns30-Jun-03 22:14 
GeneralRe: Win2K : AcceptEx() & getpeername() Pin
cmk1-Jul-03 8:41
cmk1-Jul-03 8:41 
GeneralRe: Win2K : AcceptEx() & getpeername() Pin
Ryan Binns1-Jul-03 15:39
Ryan Binns1-Jul-03 15:39 
GeneralRe: Win2K : AcceptEx() & getpeername() Pin
cmk1-Jul-03 17:08
cmk1-Jul-03 17:08 
Questionhow to get the current window system language name? Pin
benben30-Jun-03 17:35
benben30-Jun-03 17:35 
AnswerRe: how to get the current window system language name? Pin
Toni7830-Jun-03 18:14
Toni7830-Jun-03 18:14 
AnswerRe: how to get the current window system language name? Pin
Ryan Binns30-Jun-03 18:58
Ryan Binns30-Jun-03 18:58 
GeneralRe: how to get the current window system language name? Pin
Toni7830-Jun-03 19:12
Toni7830-Jun-03 19:12 
GeneralRe: how to get the current window system language name? Pin
Rage30-Jun-03 20:51
professionalRage30-Jun-03 20:51 
GeneralRe: how to get the current window system language name? Pin
Ryan Binns30-Jun-03 22:03
Ryan Binns30-Jun-03 22:03 
GeneralThanks Pin
benben30-Jun-03 20:39
benben30-Jun-03 20:39 
GeneralRe: Thanks Pin
Ryan Binns30-Jun-03 22:04
Ryan Binns30-Jun-03 22:04 
GeneralCListCtrl can we get a handle to the icon associated to the text Pin
FASTian30-Jun-03 17:30
FASTian30-Jun-03 17:30 
GeneralRe: CListCtrl can we get a handle to the icon associated to the text Pin
Ryan Binns30-Jun-03 19:07
Ryan Binns30-Jun-03 19:07 
QuestionHow to disable the "Esc" key Pin
FlyingDancer30-Jun-03 17:15
FlyingDancer30-Jun-03 17:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.