[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: [CPROG] Netværks programmering



On Mon, 19 Jun 2000, Carsten Svaneborg wrote:

> jonasbn wrote:
> > Nu vi er ved sockets, er der nogen der har et tip til hvordan
> > man beskytter sine socket buffere mod overflow?
> 
> Når du laver en read kan man så ikke specificere max antallet
> af bytes du vil modtage? Så gælder det bare om at gøre bufferen
> en byte større til den terminerende 0 byte.
> 

Jo det kan lade sig gøre at sende det antal bytes som en read skal forsøge at læse. Retur værdien er det faktisk antal læste bytes. Men du mener så at det ikke kan lade sig gøre at overstige det angivne antal?

Det lyder meget plausibelt.

Jonas

Eml: sslug@sslug || ICQ: 62401545
WWW: http://hjem.wanadoo.dk/~wan17111/ 
WAP: http://jonasbn.hjem.wanadoo.dk/index.wml



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 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] *