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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to