edhanz
Jul 14th, 2009, 07:49 AM
Hi,
i made a client app to connect to server. it can connect 10 winsock at once (max 10 connections). for that purpose, i already made 2 versions to compare, using 10 winsock controls and the other one using 1 winsock control as array..
after comparison of both versions, i found non-array winsock app has faster connection than the other one (although i like winsock array version most)..
from what i've read on internet, it's said better not to use array if we already knew how many the maximum controls are used. in my case, since i only use max 10 connections, then it's better using 10 winsock control (not as array), since array will use more memory..
so, what do you think about that?
i made a client app to connect to server. it can connect 10 winsock at once (max 10 connections). for that purpose, i already made 2 versions to compare, using 10 winsock controls and the other one using 1 winsock control as array..
after comparison of both versions, i found non-array winsock app has faster connection than the other one (although i like winsock array version most)..
from what i've read on internet, it's said better not to use array if we already knew how many the maximum controls are used. in my case, since i only use max 10 connections, then it's better using 10 winsock control (not as array), since array will use more memory..
so, what do you think about that?