Sujet : Re: Simple Pascal question
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 08. Aug 2024, 02:26:20
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v916rr$3gkds$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Pan/0.159 (Vovchansk; )
On Wed, 7 Aug 2024 20:38:02 -0400, Arne Vajhøj wrote:
On 8/7/2024 5:35 PM, Lawrence D'Oliveiro wrote:
>
Trying to do select/poll? There’s something like 4 different classes
and I don’t know how many methods involved.
There are several ways to do that in Java:
* java.nio
* Netty
* RxJava
* ...
All of them require a bit of documentation reading.
But so does the same problem in languages like C# and C.
The POSIX calls are quite straightforward
<
https://manpages.debian.org/2/poll.2.en.html>.
And the typical Java application works at a higher level - it asks some
framework to listen at a given port and call some code to process
requests.
So does Python. Yet it can do it much more simply
<
https://docs.python.org/3/library/select.html> -- even the asyncio
framework makes it easy to watch a file descriptor
<
https://docs.python.org/3/library/asyncio-eventloop.html#watching-file-descriptors>