[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



Hans Schou wrote:

On Thu, 16 Nov 2006, Robert Larsen wrote:

Du kan jo bruge non-blocking IO men så skal du nok også ud i noget select/poll/epoll for at finde ud af hvornår der kan sendes/modtages.


Altså det er enten non-block eller select.

Ham her er helt vild med select()
http://www.lowtek.com/sockets/select.html

Eksemplet i man-page er også ok.

/hans

Hvis du holder dig til Linux er epoll bedre (findes kun til Linux). Se evt. denne benchmark:
http://bcr2.uwaterloo.ca/~brecht/papers/getpaper.php?file=ols-2004.pdf


Personligt synes jeg også at epoll er bedre at arbejde med, men det er jo en smags sag.

 
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] *