comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: Get_Line vs Adasockets
Date: 2000/08/14
Date: 2000-08-14T00:00:00+00:00	[thread overview]
Message-ID: <8n91lo$ek$1@nnrp1.deja.com> (raw)
In-Reply-To: 8n8lku$2ks$1@news.tpi.pl

In article <8n8lku$2ks$1@news.tpi.pl>,
  "Ultor" <ultor@hert.org> wrote:
> > > procedure testsock is ...
> > >   BUF              : String (1..500);
> >      Current_String_Length : Natural;
> >
> > > begin...
> > >   loop...
> >          Get_Line(Incoming_Socket, Buf, Current_String_Length);
> >          if BUF(1..Current_String_Length)="QUIT" ...
>
> That won't work cause Incoming_Socket is not File_Type ... will work
> if ther's some way to convert Incoming_Socket to File_Type.


Well, the "File" parameter has to be of Ada.Text_IO.File_Type, of
course. If its not, you are going to have to do something else besides
Text_IO.

What exactly is "Incoming_Socket", and where did you get it?

--
T.E.D.

http://www.telepath.com/~dennison/Ted/TED.html


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-08-14  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-13  0:00 Get_Line vs Adasockets Ultor
2000-08-13  0:00 ` Dale Stanbrough
2000-08-14  0:00   ` Martin Dowie
2000-08-17  0:00     ` tmoran
2000-08-21  0:00       ` Martin Dowie
2000-08-14  0:00 ` Anders Gidenstam
2000-08-14  0:00 ` Ken Garlington
2000-08-14  0:00   ` Ultor
2000-08-14  0:00     ` Ted Dennison [this message]
2000-08-14  0:00       ` Michal Zalewski
2000-08-14  0:00         ` Ted Dennison
2000-08-21  1:44   ` David Thompson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox