Click here to Skip to main content
15,888,015 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get Windows Country List (Location List) seen in the Control Panel Pin
Roger Wright14-Jun-11 20:01
professionalRoger Wright14-Jun-11 20:01 
QuestionHow to avoid Stream.Read() block when internet connection is suddenly down? Pin
Chesnokov Yuriy13-Jun-11 4:49
professionalChesnokov Yuriy13-Jun-11 4:49 
AnswerRe: How to avoid Stream.Read() block when internet connection is suddenly down? Pin
BobJanova13-Jun-11 6:06
BobJanova13-Jun-11 6:06 
AnswerRe: How to avoid Stream.Read() block when internet connection is suddenly down? Pin
Luc Pattyn13-Jun-11 7:26
sitebuilderLuc Pattyn13-Jun-11 7:26 
GeneralRe: How to avoid Stream.Read() block when internet connection is suddenly down? Pin
Chesnokov Yuriy13-Jun-11 7:57
professionalChesnokov Yuriy13-Jun-11 7:57 
AnswerRe: How to avoid Stream.Read() block when internet connection is suddenly down? Pin
Luc Pattyn13-Jun-11 10:41
sitebuilderLuc Pattyn13-Jun-11 10:41 
AnswerRe: How to avoid Stream.Read() block when internet connection is suddenly down? Pin
Chesnokov Yuriy13-Jun-11 20:24
professionalChesnokov Yuriy13-Jun-11 20:24 
AnswerRe: How to avoid Stream.Read() block when internet connection is suddenly down? Pin
jschell13-Jun-11 8:39
jschell13-Jun-11 8:39 
The is no way for TCP to recognize that the other end no longer exists when it is waiting for a response.

So the same is true for any protocol built on it.

There might be situations where some sort of exception results. Maybe. For example I am not sure what the windows IP stack might do if you pull your network cable.

But if you want to deal with all situations and not a just a few then you need to set up a timeout. Either via the protocol itself or via a secondary thread.
AnswerRe: How to avoid Stream.Read() block when internet connection is suddenly down? Pin
Chesnokov Yuriy13-Jun-11 9:06
professionalChesnokov Yuriy13-Jun-11 9:06 
QuestionAdd the RegularExpressionValidator on the server side Pin
vanikanc13-Jun-11 4:45
vanikanc13-Jun-11 4:45 
AnswerRe: Add the RegularExpressionValidator on the server side Pin
Not Active13-Jun-11 6:54
mentorNot Active13-Jun-11 6:54 
GeneralRe: Add the RegularExpressionValidator on the server side Pin
vanikanc13-Jun-11 7:04
vanikanc13-Jun-11 7:04 
GeneralRe: Add the RegularExpressionValidator on the server side Pin
Not Active13-Jun-11 7:46
mentorNot Active13-Jun-11 7:46 
GeneralRe: Add the RegularExpressionValidator on the server side Pin
vanikanc13-Jun-11 7:48
vanikanc13-Jun-11 7:48 
GeneralRe: Add the RegularExpressionValidator on the server side Pin
Not Active13-Jun-11 8:37
mentorNot Active13-Jun-11 8:37 
QuestionBasic Insert Row Question Pin
AmbiguousName13-Jun-11 1:46
AmbiguousName13-Jun-11 1:46 
AnswerRe: Basic Insert Row Question Pin
Pete O'Hanlon13-Jun-11 2:07
mvePete O'Hanlon13-Jun-11 2:07 
GeneralRe: Basic Insert Row Question Pin
AmbiguousName13-Jun-11 2:30
AmbiguousName13-Jun-11 2:30 
GeneralRe: Basic Insert Row Question Pin
Pete O'Hanlon13-Jun-11 2:51
mvePete O'Hanlon13-Jun-11 2:51 
AnswerRe: Basic Insert Row Question Pin
phil.o13-Jun-11 2:16
professionalphil.o13-Jun-11 2:16 
GeneralRe: Basic Insert Row Question Pin
AmbiguousName13-Jun-11 2:29
AmbiguousName13-Jun-11 2:29 
GeneralRe: Basic Insert Row Question Pin
phil.o13-Jun-11 2:35
professionalphil.o13-Jun-11 2:35 
GeneralRe: Basic Insert Row Question Pin
AmbiguousName13-Jun-11 2:42
AmbiguousName13-Jun-11 2:42 
GeneralRe: Basic Insert Row Question Pin
phil.o13-Jun-11 2:49
professionalphil.o13-Jun-11 2:49 
AnswerRe: Basic Insert Row Question Pin
RaviRanjanKr13-Jun-11 2:48
professionalRaviRanjanKr13-Jun-11 2:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.