O
O.B.
When sharing a Socket between threads, are the socket operations
automatically synchronized to support multithreading?
For example:
Thread1 sets up a server socket to listen and invokes BeginAccept.
A connection is made and Thread2 (within the BeginAccept delegate) begins.
Does the server socket been to be "locked" before Thread2 calls
EndAccept? If not, what prevents corruption when Thread1 from closing
the server socket while the BeginAccept delegate (Thread2) is just about
to call EndAccept?
automatically synchronized to support multithreading?
For example:
Thread1 sets up a server socket to listen and invokes BeginAccept.
A connection is made and Thread2 (within the BeginAccept delegate) begins.
Does the server socket been to be "locked" before Thread2 calls
EndAccept? If not, what prevents corruption when Thread1 from closing
the server socket while the BeginAccept delegate (Thread2) is just about
to call EndAccept?