[Gambas-user] Strings and Network input ...

Gareth Bult gareth at ...1689...
Sat May 12 15:38:36 CEST 2007


Urm, will do, just as soon as I can download .49 .. ;-)


----- Original Message -----
From: "Benoit Minisini" <gambas at ...1...>
To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Sent: Saturday, May 12, 2007 1:00:32 PM (GMT) Europe/London
Subject: Re: [Gambas-user] Strings and Network input ...

On jeudi 10 mai 2007, Gareth Bult wrote:
> Urm,
>
> One (easy) answer would be to have a flag that's set if the LINE INPUT
> returns with a complete line. If last (n) characters == EndOfLine then
> Complete = TRUE, else Complete = FALSE.
>
> This was my solution, I've subclassed the socket (imapdsocket) and written
> my own line input routine that does this. (albeit it may be a bottleneck
> written in Gambas as opposed to C)
>
> Gareth.
>

I added a EndOfFile property in the Stream class that tells you if LINE INPUT 
has reached the end of file (EndOfFile = TRUE) or has read an end of line 
(EndOfFile = FALSE).

If you could try it...

Regards,

-- 
Benoit Minisini

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


-- 
Gareth Bult, Encryptec Limited
Tel: 0845 25 77033, FWD: 753977, Mob: 07891 389657
Email: gareth at ...1689...

Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request.





More information about the User mailing list