Re: Communication speed between blocking call and non blocking cal
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Wed, 22 Feb 2006 10:06:17 -0800
Can't imagine a reason not to. I have no problem with non-blocking
socket and regular select for sure. Make sure you are not starving
the socket - e.g. you always fill its send buffer. Or if it's a receive
socket - make sure you drain it completely before waiting for
another event. You may get notified with no data in the socket
this way - simply ignore such cases.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Anand Choubey" <AnandChoubey@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2F6B49CF-3B1C-4951-A91B-B6AA61828277@xxxxxxxxxxxxxxxx
Hi
Thanks for reply.
It is TCP socket.
Code is big because it includes business logic also. So i could not post
in
newsgroup.
Are we sure nonblockin socket gives high speed with WSAEventSelect???
--
With regards
thanks
Anand Choubey
"Alexander Nickolov" wrote:
Can you post your code for review? May be a programming
error on your part...
Also, are you talking about sending or receiving data? TCP or
UDP?
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Anand Choubey" <AnandChoubey@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B3926315-ECC9-47F1-91A8-C9456DCB4E47@xxxxxxxxxxxxxxxx
Hi
As we know there are two main methods for socket communication
1. winsock blocking calls
2. winsock nonblocking calls
I would like to know that which method is faster.
As I tested blocking call is much faster than nonblocking call
(WSAEnumNetworkEvents).
Blocking call gives me speed around 80Mbps whereas nonblocking
call(WSAEnumNetworkEvents) gives me around 10Mbps.
Please suggest me that How to increase speed for nonblocking
call(WSAEnumNetworkEvents).
I tested under windows 2000 Server.
--
With regards
thanks
Anand Choubey
.
- Follow-Ups:
- Re: Communication speed between blocking call and non blocking cal
- From: Anand Choubey
- Re: Communication speed between blocking call and non blocking cal
- References:
- Re: Communication speed between blocking call and non blocking call
- From: Alexander Nickolov
- Re: Communication speed between blocking call and non blocking call
- Prev by Date: Re: Broadcast packets on specific adapter
- Next by Date: Re: Who should close and when?
- Previous by thread: Re: Communication speed between blocking call and non blocking call
- Next by thread: Re: Communication speed between blocking call and non blocking cal
- Index(es):
Relevant Pages
|