TcpClient problem

  • Thread starter Thread starter Dirk Reske
  • Start date Start date
D

Dirk Reske

Hello,

I try to connect to a remote server using TcpClient.BeginConnect(...);
after I call the BeginConnect method, the Callback is imedeately called,
but the socket isn't connected!
When I set a breakpoint at the callback, so that I have a little break...
the socket gets connected.
What can this be?

thx
 
There are two types of calls : "Block" or "Non -Block", I believe you
are using the Non-block mode, so even the call back is immediately
called, it doesn't mean the connection is established.

You may want to try "Block " mode if you wish.

HTH
Jianwei
 
Back
Top