From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,21eb855b156afd08 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.telebyte.nl!news.jgaa.com!news.hacking.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Ada Chat Program Date: 27 Sep 2004 09:46:07 +0200 Organization: hacking.dk - Doing fun stuff with open source Sender: sparre@sparre.crs4.it Message-ID: References: NNTP-Posting-Host: sparre.crs4.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: xyzzy.adsl.dk 1096271167 1046 156.148.70.170 (27 Sep 2004 07:46:07 GMT) X-Complaints-To: usenet@news.hacking.dk NNTP-Posting-Date: Mon, 27 Sep 2004 07:46:07 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:4243 Date: 2004-09-27T09:46:07+02:00 List-Id: Stephen Z. wrote: > I am trying to write a simple chat program with Ada. I am using the > sockets package. I am trying to input a string and parse each > character and send them each individually. If anyone can help me > with this, I would greatly appreciate it. I think the sockets package has a plain Put_Line procedure that you can use. In you can find some code I wrote with a friend using the sockets package. I hope it is sufficient to give you an idea of how you can use the sockets package on a line-by-line basis. Once you have set up the connection, there isn't much difference between Ada.Text_IO and Sockets. Jacob PS: I like `talk` style chat programs much more than ICQ style. To me ICQ seems just like my e-mail program, only with the ability to see who is awake at the moment, whereas `talk` is proper chatting. -- Growing older is compulsory. Growing up isn't.