[fpc-pascal] TCP Server

Adrian Veith adrian at veith-system.de
Mon Aug 21 09:13:55 CEST 2006


Hello Fabricio,

there are some examples at the synapse wiki page. I suggest that you 
also subscribe to the synalist at sourceforge.net - this is the right 
place to ask questions about synapse. There are many active users which 
can answer your questions.

Anyway, if you have the echo server running, than you have "almost" done 
the job. Instead of echoing the the data back to the client, you have to 
analyze the commands and send the results back to client.

Cheers,

Adrian.

Fabrício F. Kammer schrieb:
> OK I was able to run the echo server example. Now I need to know how 
> can I make a server that gets the commands sends by my client 
> application and make the right actions with these commands.
>
> Can anyone help with this?
>
> PS: I'm trying to install the indy on windows xp without succes, if 
> someone can help me I'll be thanks.
>
> []s
>
> Fabrício
>
> Andreas Berger escreveu:
>>
>>> OK,
>>>
>>> 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.
>> Check out the echo demo in synapse. It seem to be exactly what you want.
>>
>> _______________________________________________
>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



More information about the fpc-pascal mailing list