.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
Post a Comment