From: tmoran@acm.org
Subject: Re: TCP/IP Sockets with GNAT.Sockets
Date: Mon, 02 May 2005 18:42:21 -0500
Date: 2005-05-02T18:42:21-05:00 [thread overview]
Message-ID: <xMSdnbi7B_BAJ-vfRVn-qQ@comcast.com> (raw)
In-Reply-To: 030520050010146101%jaco@neottia.net
For POP3 and a bunch of other stuff you need an IO layer that buffers
input and lets you read LF terminated strings, similar to
Ada.Text_IO.Get_Line. eg
type Socket_Type(Max_Line_Length: Positive)
is new NC.Sockets.Socket_Type with private;
procedure Get_Line(Socket : in out Socket_Type;
Line : out String;
Last : out Natural;
Timeout : in Duration := 30.0);
-- Return Line(Line'first .. Last)
-- Input up through LF if LF occurs,
-- Line(Line'range) if no LF seen,
-- or Input up through last received char if timeout or hangup
next prev parent reply other threads:[~2005-05-02 23:42 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-02 2:42 TCP/IP Sockets with GNAT.Sockets fabio de francesco
2005-05-02 5:58 ` Eric Jacoboni
2005-05-02 12:11 ` Adrien Plisson
2005-05-02 14:55 ` fabio de francesco
2005-05-02 16:10 ` Adrien Plisson
2005-05-02 17:56 ` Eric Jacoboni
2005-05-02 18:30 ` Poul-Erik Andreasen
2005-05-02 19:10 ` Simon Wright
2005-05-03 13:00 ` Poul-Erik Andreasen
2005-05-03 21:48 ` Simon Wright
2005-05-04 8:01 ` Character'First, ASCII.NUL and others (Was: Re: TCP/IP Sockets with GNAT.Sockets) Adrien Plisson
2005-05-04 13:40 ` Poul-Erik Andreasen
2005-05-02 20:37 ` TCP/IP Sockets with GNAT.Sockets fabio de francesco
2005-05-02 20:52 ` Adrien Plisson
2005-05-03 12:04 ` fabio de francesco
2005-05-03 12:22 ` Adrien Plisson
2005-05-03 13:17 ` Poul-Erik Andreasen
2005-05-02 20:44 ` Adrien Plisson
2005-05-02 22:10 ` Eric Jacoboni
2005-05-02 23:42 ` tmoran [this message]
2005-05-02 19:39 ` Björn
2005-05-02 20:22 ` fabio de francesco
2005-05-09 4:03 ` Dave 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