comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Re: Ada Chat Program
Date: 27 Sep 2004 09:46:07 +0200
Date: 2004-09-27T09:46:07+02:00	[thread overview]
Message-ID: <plllewnohs.fsf@sparre.crs4.it> (raw)
In-Reply-To: de98c113.0409170913.2e016a86@posting.google.com

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
<http://www.nbi.dk/%7Esparre/temp/diffusion_confusion-20020902.tar.gz>
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.




      parent reply	other threads:[~2004-09-27  7:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-17 17:13 Ada Chat Program Stephen Z
2004-09-17 18:18 ` Bernd Specht
2004-09-17 21:20   ` Martin Dowie
2004-09-18 16:15     ` Stephen Z
2004-09-18 19:10       ` Bernd Specht
2004-09-18 19:05     ` Bernd Specht
2004-09-18 14:09 ` Pascal Obry
2004-09-27  7:46 ` Jacob Sparre Andersen [this message]
replies disabled

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