[fpc-pascal]Synapse for FPC

Marco van de Voort marcov at stack.nl
Wed Jul 23 12:41:56 CEST 2003

> > Following works perfectly for me for many years:
> >
> > ioctl(Sock,FIONBIO, at tmp); // nonblocking
> >
> > All but one applications are single thread.
> Yes. You are using the 'work around'. Traditional UNIX sockets block.
> Microsoft (and others) realised this would not work with a co-operative
> multitasking operating system (e.g. Windows 3.1, MacOS 9 and prior) and so
> the idea of non-blocking sockets was concieved. Indeed M$'s first Winsock
> implementations used purely Non-blocking sockets.

Hmm, I think this is more due to the move to event driven programming models
than cooperative multitasking.

> The tcp/ip developer has two avenues to wander down.

The _GUI_  (Event driven) tcp/ip developper. Server processes can use select
and fork mechanisms easily too, since network is its main event loop.

More information about the fpc-pascal mailing list