471,350 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Asynchronous socket timeout?

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
Dec 9 '05 #1
1 4262
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?

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Franky" <Fr****@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...
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

Dec 9 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Corne Oosthuizen | last post: by
5 posts views Thread by a.kostrzewa | last post: by
4 posts views Thread by Matthew Groch | last post: by
7 posts views Thread by Colin | last post: by
1 post views Thread by Assaf Shemesh | last post: by
4 posts views Thread by Engineerik | last post: by
2 posts views Thread by Giulio Petrucci | last post: by
2 posts views Thread by Nicolas Le Gland | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.