.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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -