[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] C++ Socket programmering, client, test af connection



"Robert Larsen" <sslug@sslug> skrev i en meddelelse
news:sslug@sslug
> David Bo Jensen wrote:
>
>> Min client laver en connection til en server, og venter herefter på at
>> applikationen
>>sender noget til serveren.
>>Inden dette sker, kan forbindelsen imidlertid være brudt, da der kan gå
>>lang tid.
>>
>>Jeg ønsker derfor, at lave en tråd, der med jævne mellemrum tester om
>>forbindelsen er ok.
>>Hvis ikke vil tråden reetablere forbindelsen.
>>Mit spørgsmål lyder således:
>>Hvordan tester man, om en connection stadig er etableret?
>>
>>
>>
>>
> Der bliver sendt en end-of-file til applikationen. read vil returnere -1
>
Hvad mener du med det? Hvis jeg kalder read, så vil applikationen blive
blokeret indtil serveren sender noget, eller en fejl opstår. Det, jeg
ønsker, er hurtigt, at teste om forbindelsen stadig er der.





 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-12-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *