Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > NETWORKING AND REMOTE ACCESS SERVICES (RAS) (TECHNET) > AcceptEx vs. WSAAccept
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 27th July 02:11
edchan
External User
 
Posts: 1
Default AcceptEx vs. WSAAccept


Which is better? What are the trade offs, advantages/disadvantages of
using one over the other?

Thanks,
Ed
  Reply With Quote


  sponsored links


2 27th July 02:12
scherbina vladimir
External User
 
Posts: 1
Default AcceptEx vs. WSAAccept


That depends on what you're trying to achieve.

The main disadvantage of AcceptEx is that function is not supported on
Windows Me/98/95.

From MSDN:

"The AcceptEx function combines several socket functions into a single
API/kernel transition. The AcceptEx function, when successful, performs
three tasks:

- A new connection is accepted.
- Both the local and remote addresses for the connection are returned.
- The first block of data sent by the remote is received."

So it should work faster then WSAAccept. Another plus is that AcceptEx
function uses overlapped I/O, unlike the accept function. You may read the
differences between AcceptEx(...) and accept(...) in MSDN site:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/acceptex_2.asp

accept(...) simply calls inside WSAAccept(...).

--
Vladimir
  Reply With Quote
3 27th July 02:19
vadym stetsyak
External User
 
Posts: 1
Default AcceptEx vs. WSAAccept


Also WSAAccept supports conditional accept through application-specified condition function that will make an accept/reject decision based on the caller information.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
  Reply With Quote
4 27th July 02:27
arkady frenkel
External User
 
Posts: 1
Default AcceptEx vs. WSAAccept


In addition be aware of possible problems with SO_CONDITIONAL_ACCEPT in
WSAAccept() http://support.microsoft.com/?id=328264

Arkady
  Reply With Quote
5 25th February 21:53
edchan
External User
 
Posts: 1
Default AcceptEx vs. WSAAccept


Which is better? What are the trade offs, advantages/disadvantages of
using one over the other?

Thanks,
Ed
  Reply With Quote
6 25th February 21:53
scherbina vladimir
External User
 
Posts: 1
Default AcceptEx vs. WSAAccept


That depends on what you're trying to achieve.

The main disadvantage of AcceptEx is that function is not supported on
Windows Me/98/95.

From MSDN:

"The AcceptEx function combines several socket functions into a single
API/kernel transition. The AcceptEx function, when successful, performs
three tasks:

- A new connection is accepted.
- Both the local and remote addresses for the connection are returned.
- The first block of data sent by the remote is received."

So it should work faster then WSAAccept. Another plus is that AcceptEx
function uses overlapped I/O, unlike the accept function. You may read the
differences between AcceptEx(...) and accept(...) in MSDN site:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/acceptex_2.asp

accept(...) simply calls inside WSAAccept(...).

--
Vladimir
  Reply With Quote
7 27th February 13:36
vadym stetsyak
External User
 
Posts: 1
Default AcceptEx vs. WSAAccept


Also WSAAccept supports conditional accept through application-specified condition function that will make an accept/reject decision based on the caller information.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
  Reply With Quote
8 29th February 05:24
arkady frenkel
External User
 
Posts: 1
Default AcceptEx vs. WSAAccept


In addition be aware of possible problems with SO_CONDITIONAL_ACCEPT in
WSAAccept() http://support.microsoft.com/?id=328264

Arkady
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666