.net - Share send byte[] buffer among multiple SocketAsyncEventArgs -



.net - Share send byte[] buffer among multiple SocketAsyncEventArgs -

in scenario send same info many clients, i.e. in scenario should (and in future will) switch using (e.g. pgm) multicast, would thread-safe utilize the same byte[] array instance on multiple socketasynceventargs , hand them multiple sockets via sendasync sent concurrently?

after all, sendasync should only read buffer, sharing instance shouldn't issue. guess enable reuse of buffer afterwards, i' d have reference counting , there may other issues tackle, question first , foremost thread safety.

.net multithreading sockets socketasynceventargs

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -