Does anyone know what Socket.UseOnlyOverlappedIO does, and if so, does it affect performance? There seems to be no real explanation on MSDN.
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sorry for the old post but this caused me some issues!
The answer isn’t correct, UseOnlyOverlappedIO (at least in .net 4) means that async calls (other that XXAsync) on the socket will not be bound to an IO completion port.
The value is ignored for the XXAsync calls which means that IO completion ports are always used so you can’t do things like Duplicate the socket to another process.
Whether or not it will affect performance depends on your app, test it with both!