[fpc-pascal] TCP Server

Aleksey Y. Ulasevich (STAKANOV) platinum at umail.ru
Fri Aug 18 15:48:54 CEST 2006


>
> I downloaded the synapse, but I don't know how to use it to make a TCP 
> server.
>
> I need to do a server that listen on a specific port. After connected the 
> client will send some commands to the server that will make some actions 
> and return the results to the client.
>
> Basicly the client will send strings to the server and receive another 
> strings.

Why synapse? Why indy? You may use fpc unit "sockets" for it.
For more information see standard fpc documentation - 
http://www.freepascal.org/docs-html/rtl/sockets/index.html

Some examples in http://www.freepascal.org/docs-html/rtl/sockets/accept.html 
, http://www.freepascal.org/docs-html/rtl/sockets/connect.html ... and 
others. 




More information about the fpc-pascal mailing list