M
Mahesh Devjibhai Dhola [MVP]
Hi,
Socket class documentation says that it is not thread safe. We understand
that if do simultaneous sends on ONE socket then it will be a problem (or
simultaneous receive). Can we create TWO threads on OUR OWN such that one
will do SEND and one will do RECEIVE using the SAME socket reference? This
means that two threads WILL BE in the same SOCKET object - one doing receive
and one doing send. We know we can use asynchronous calls on the socket to
achieve this but whether we can do this using our own threads. Any pointers
to official documentation that shows that this is permissible?
Thanks in advance,
Regards,
Mahesh
Socket class documentation says that it is not thread safe. We understand
that if do simultaneous sends on ONE socket then it will be a problem (or
simultaneous receive). Can we create TWO threads on OUR OWN such that one
will do SEND and one will do RECEIVE using the SAME socket reference? This
means that two threads WILL BE in the same SOCKET object - one doing receive
and one doing send. We know we can use asynchronous calls on the socket to
achieve this but whether we can do this using our own threads. Any pointers
to official documentation that shows that this is permissible?
Thanks in advance,
Regards,
Mahesh