comp.lang.ada
 help / color / mirror / Atom feed
From: alex.aanis@gmail.com
Subject: Re: Need help creating a multi client TCP server with Ada
Date: Thu, 6 Feb 2014 15:40:20 -0800 (PST)
Date: 2014-02-06T15:40:20-08:00	[thread overview]
Message-ID: <e5831305-5db7-4f0c-b19f-51acc229251a@googlegroups.com> (raw)
In-Reply-To: <173b40e2-b288-4375-9842-e6058e565379@googlegroups.com>

>     use type GNAT.Sockets.Stream_Access;
>                                -- Adam

Yes, I now can can store the channels. However I still can't connect more than one client. Is there  something wrong with my listener task:

 task body listenerTask is
  status      : Sockets.Selector_Status;
  Client      : Sockets.Sock_Addr_Type;
  Connection  : Sockets.Socket_Type;
  channel      : Sockets.Stream_Access;
  
 begin
  loop
   Sockets.Accept_Socket (
			  Server  => Receiver,
			  Socket  => Connection,
			  Address => Client,
			  timeout => 30.0,
			  Status  => status
			 );

   channel := Sockets.Stream (Connection);
   channels.Append (channel);

  end loop;
 end;

  reply	other threads:[~2014-02-06 23:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-06 21:42 Need help creating a multi client TCP server with Ada alex.aanis
2014-02-06 22:23 ` adambeneschan
2014-02-06 23:40   ` alex.aanis [this message]
2014-02-07  8:48     ` Jacob Sparre Andersen
2014-02-07 17:16       ` alex.aanis
2014-02-07 17:53         ` Dmitry A. Kazakov
2014-02-07 18:34 ` Simon Wright
replies disabled

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