"are asynchronous writes to a socket thread safe?" Code Answer

5

i found a smiliar post on the msdn forum which seems to answer to your question.

  1. you can queue multiple beginsends at the same time. you don't need to lock

edit:

even more interesting informations:

if you scroll down a bit in the remark section of the msdn doc beginsend(), you will find interesting use of callback methods that could be relevant for you.

[...] if you want the original thread to block after you call the beginsend method, use the waithandle.waitone method. [...]

By Blessing Lopes on October 2 2022

Answers related to “are asynchronous writes to a socket thread safe?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.