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.8 required=5.0 tests=BAYES_00,URI_HEX autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c22949b5ebf3505f,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-07 11:03:21 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!212.97.175.23!not-for-mail From: Jano Newsgroups: comp.lang.ada Subject: [OT] Two sockets questions Date: Wed, 7 May 2003 20:03:13 +0200 Message-ID: NNTP-Posting-Host: 212.97.175.23 X-Trace: fu-berlin.de 1052330600 18765418 212.97.175.23 (16 [49872]) X-Newsreader: MicroPlanet Gravity v2.50 Xref: archiver1.google.com comp.lang.ada:37036 Date: 2003-05-07T20:03:13+02:00 List-Id: 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 -------------------------