Ohad

Ohad

  • NA
  • 4
  • 4.7k

I use NamedPipes in c# (.Net 3.5 ). I want to write to threads for the client one read and the other for write.

Jun 26 2012 5:11 AM
I use NamedPipes in c# (.Net 3.5 ).
I want to write two threads for the client. One for read and the other for write.
Each thread has different NamedPipeClientStream.
The two threads try to Connect with some timeout.
The first client pass the Connect successfully but the other throw an IOException ("The semaphore timeout period has expired").
Why the second client can not Connect to the server?
How this code should be written?
Thanks.

Answers (1)