[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: your mail



On Fri, 11 Jun 1999, Magnus Sjoegren wrote:
> > Du kan jo starte med at læse de x interessante bytes og så bagefter
> > læse og smide væk indtil du når en fastsat afslutningskarakter (oftest
> > '\n' - har selv brugt metoden til at snakke med en SMTP-server)
> 
> Den ursprungliga frågan var hur jag skulle slippa läsa mer än 
> nödvändigt. Hur gör du om du får multipla rader som svar från din
> SMTP-server?
> 
> rad 1\n
> rad 2\n
> rad 3\n

hmmm, er der en statusbesked i hver linie eller er det en besked med tre
liniers tekst? Hvis det er det sidste kan du måske læse statusnummer og
ignorere et fast antal linier alt efter hvad nummer det er (virker
selvfølgelig kun hvis der kommer samme antal linier hver gang). En anden
løsning kunne være at læse første tegn i linien, hvis det er et tal læser
man resten af koden og smider resten af linien væk, hvis det er et bogstav
smider man linien i havet med det samme.

/Jesper

"Microsoft does have a Year 2000 problem. We're it"
(c) unknown       - Go Linux! http://www.linux.org/

 Jesper Monsted - RIPE: JM42 - sslug@sslug



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

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