Archived

This topic is now archived and is closed to further replies.

winsock performance

This topic is 4997 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys i am quite new to network programming (i have ust finished my CSocket implementation etcetc...) - so i have a little question: Is windows'' socket API enough fast for games like Counterstrike? (I was trying to write something like ping and it hadn''t seemed very fast) OR is there some other and a little faster/cleaner method how to implement network under windows? it is just a performance question... thank you exa_einstein

Share this post


Link to post
Share on other sites
WinSock is the fastest available. Counterstrike uses it. If you have performance problems, the problem is not in WinSock.

The only other alternative is DirectPlay. If you care about performance, it''s common to not want to use DirectPlay.

Share this post


Link to post
Share on other sites
quote:
Original post by Evil Steve
And for the love of god stay away from async sockets (WSASelect, WSASend, etc)


I think you''re confused. There''s no such function as WSASelect() and WSASend() adds functionality for overlapped, not asynchronous sockets.

Share this post


Link to post
Share on other sites
quote:
Original post by SiCrane
quote:
Original post by Evil Steve
And for the love of god stay away from async sockets (WSASelect, WSASend, etc)


I think you''re confused. There''s no such function as WSASelect() and WSASend() adds functionality for overlapped, not asynchronous sockets.

Whoops, thats what i mean

Share this post


Link to post
Share on other sites