comp.lang.ada
 help / color / mirror / Atom feed
* [OT] Two sockets questions
@ 2003-05-07 18:03 Jano
  2003-05-07 18:22 ` Samuel Tardieu
  2003-05-07 20:09 ` tmoran
  0 siblings, 2 replies; 33+ messages in thread
From: Jano @ 2003-05-07 18:03 UTC (permalink / raw)


Well, this is at best mildly related to Gnat, but as this is the only 
programmers forum I frequent these times...

I'm experimenting with non-blocking IO in sockets (I'm using the 
Gnat.Sockets package), and I have two questions:

Is there a way of performing a connect without blocking on it? I suspect 
not... and if not in Ada, by other means?

Second: I have a connected socket which I poll periodically for data. 
When there is no more data available and the other endpoint has closed 
the socket, I continue receiving 0 byte available but not notification 
of closed socket. It's only when I try to read/write that a exception is 
raised about the connection reset or something. Is there a mean to be 
aware that connection has been closed (after the available data is 
exhausted, I presume)?

Thanks in advance,

-- 
-------------------------
Jano
402450.at.cepsz.unizar.es
-------------------------



^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2003-05-11 18:23 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-07 18:03 [OT] Two sockets questions Jano
2003-05-07 18:22 ` Samuel Tardieu
2003-05-07 19:52   ` Stephen Leake
2003-05-07 20:08     ` David C. Hoos
2003-05-07 22:33     ` Jano
2003-05-08  9:10       ` Samuel Tardieu
2003-05-08 21:35         ` Jano
2003-05-09  8:14           ` Samuel Tardieu
2003-05-09 14:32             ` Jano
2003-05-10 14:06         ` Jano
2003-05-10 18:01           ` tmoran
2003-05-10 21:27             ` Samuel Tardieu
2003-05-11 18:01               ` tmoran
2003-05-08 17:48       ` Stephen Leake
2003-05-08 18:42         ` Samuel Tardieu
2003-05-08 21:41           ` Jano
2003-05-08 21:48           ` Jano
2003-05-08 22:35             ` tmoran
2003-05-09 14:42               ` Jano
2003-05-10  8:57                 ` Tarjei T. Jensen
2003-05-10 16:55                   ` Simon Wright
2003-05-11 18:23                   ` Tarjei T. Jensen
2003-05-11  2:05                 ` tmoran
2003-05-08 21:40         ` Jano
2003-05-07 20:02   ` Jano
2003-05-08  8:57     ` Samuel Tardieu
2003-05-08 21:39       ` Jano
2003-05-08 10:14   ` Preben Randhol
2003-05-08 11:09     ` Samuel Tardieu
2003-05-08 21:40       ` Jano
2003-05-09  8:19         ` Samuel Tardieu
2003-05-08 18:06     ` tmoran
2003-05-07 20:09 ` tmoran

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