[fpc-pascal]FreePascal as a server?

Peter Vreman peter at freepascal.org
Fri Oct 4 22:16:32 CEST 2002


At 13:58 4-10-2002, you wrote:
>Hello
>
>I was wondering if anyone had any luck making a multi-threaded TCP/IP
>server in FreePascal?  Any pointers or sample could would be excelent.

The heapmanager in the RTL is not threadsafe. Using the cmem unit it is 
possible as long as you don't use standard pascal IO like 
Writeln()/Readln(). You need to use the fdopen() from the Unix unit.


Peter





More information about the fpc-pascal mailing list