[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] ::recv ::send i hver sin trd



David Bo Jensen wrote:

> Kan man kalde ::recv og ::send i hver sin thread for samme samme socket
> connection?

Ja, full duplex. Har gjort det ofta i Ada, men aldrig i c/c++ men det borde
gå

> Er der noget specielt, man skal vre opmrksom p i den forbindelse?

Nja, mest att om du ligger i recv, och den andra tråden kallar på close,
så skall du klara det utan problem.

Men du skall nog inte blanda mellan trådarna. En tråd skall BARA läsa,
och en annan skall BARA skriva, annars får du nog fixa någon
låsningsmekanism, för att förhindra att båda skriver samtidigt på socketen


-- 
/Björn



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2007-09-01, 02:01 CEST [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] *