Asynchronous socket timeout?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

How can I set timeout on the send for an asynchronous socket? I use the
setsocketoption's timeout but it does not seem work. The program is blocked
at the socket's EndSend step until the remote side closes the connection.

Thanks in advance,

Franky
 
From the docs of SendTimeout option:
"Send a time-out. This option applies only to synchronous methods; it has no
effect on asynchronous methods such as the BeginSend method".

Do you know why server doesn't receive data?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top