Click here to Skip to main content
15,883,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Ryan Binns wrote:
What's the difference between you storing the address returned by AcceptEx() and referencing it at any time, and the sockets implementation storing the address returned by AcceptEx() and you calling a function to retrieve it.

When i store the address i am duplicating what is already in memory somewhere, that is i am using twice as much memory to store the peer address as i should have to (once in the winsock lib, once in my code).

So when we talk about efficiency it is faster for me to access the address if i store it, but it is less memory if i can use the address that the winsock lib has. As we are talking about connections, if you have a server that deals with 1,000's of simultaneous connections this can add up (ok, not much, but enough that it bothers me Smile | :) ).

Anyways, i've already coded my work around.
Added an #ifdef CKNET_USE_ACCEPTEX that if enabled uses AcceptEx and adds a peer address field to my connection class, #ifndef then tie up one (or more) of the IOCP threads to sit in a loop waiting on accept(). I find both acceptable workarounds for now.


...cmk
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 
AnswerRe: How to disable the "Esc" key Pin
Toni7830-Jun-03 17:23
Toni7830-Jun-03 17:23 
GeneralRe: How to disable the "Esc" key Pin
FlyingDancer30-Jun-03 18:15
FlyingDancer30-Jun-03 18:15 
GeneralRe: How to disable the "Esc" key Pin
Toni7830-Jun-03 18:50
Toni7830-Jun-03 18:50 
GeneralRe: How to disable the "Esc" key Pin
FlyingDancer30-Jun-03 19:37
FlyingDancer30-Jun-03 19:37 
GeneralRe: How to disable the "Esc" key Pin
Toni7830-Jun-03 19:53
Toni7830-Jun-03 19:53 
GeneralRe: How to disable the "Esc" key Pin
Ryan Binns30-Jun-03 22:06
Ryan Binns30-Jun-03 22:06 

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.