Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-01

Non-blocking sockets

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Roderick van Domburg

Hi there,

I am fiddling around with FPC's network communication and was particulary interested in the application of non-blocking sockets. I was wondering if any of you ever did up any experience on that topic, it would come highly appreciated.

Roderick

Sebastian Günther
to Roderick van Domburg
Roderick van Domburg wrote 7 lines
Hi there, I am fiddling around with FPC's network communication and was particulary interested in the application of non-blocking sockets. I was wondering if any of you ever did up any experience on that topic, it would come highly appreciated.

Yes; on Linux you could use the AsyncIO unit (part of FCL) for that purpose.

- Sebastian

Markus Kaemmerer
to Roderick van Domburg: I am fiddling around with FPC's network communication and was particulary interested in…

Roderick van Domburg wrote:,

I am fiddling around with FPC's network communication and was particulary interested in the application of non-blocking sockets.

take a look at our open source project OpenXP (www.openxp.com). There you should get the sources from version 3.70.3. In unit ncsockets there is a well documented interface for using non-blocking sockets for 7bit line based applications (POP3, SMTP ...). It is working with FreePascal and Virtual Pascal and with all supported platforms.

Markus Kämmerer, OpenXP Team, http://www.openxp.de Happy Arts Software, http://www.happyarts.de
Peter Vreman
>I am fiddling around with FPC's network communication and was

particular> y

>interested in the application of non-blocking sockets.

For linux the smallest way is to use the select() call. There is an example of using select() in the documentation