08:33
Para: ICS support mailing
Assunto: Re: [twsocket] problem with TCP server
>Now I have a form which has TWSocket server and reads the clients data,
When
>this data is something "special" it calls a thread to do the parsing.
>My problem: when the thread it's calle
>Now I have a form which has TWSocket server and reads the clients data,
When
>this data is something "special" it calls a thread to do the parsing.
>My problem: when the thread it's called it consumes the system resources
and
>the client's data received meanwhile is discarded.
>Can anybody tell me
TED] Em nome
de João Gonçalves
Enviada: segunda-feira, 15 de Outubro de 2007 12:32
Para: 'ICS support mailing'
Assunto: Re: [twsocket] problem with TCP server
Hello,
I have to use linemode to false, since the server receives data from
independent hardware modules. If I put it to true, I
of solving this problem?
Thanks
Best regards
João
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de DZ-Jay
Enviada: segunda-feira, 15 de Outubro de 2007 11:12
Para: ICS support mailing
Assunto: Re: [twsocket] problem with TCP server
On Oct 15, 2007, at 05:56
On Oct 15, 2007, at 05:56, João Gonçalves wrote:
> I'm using these parameters:
> ((TTcpSrvClient *)Client)->LineMode= FALSE;//
> ((TTcpSrvClient *)Client)->LineEdit= TRUE;
> ((TTcpSrvClient *)Client)->OnDataAvailable = ClientDataAvailable;
> ((TTcpSrvClient
Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome
de DZ-Jay
Enviada: segunda-feira, 15 de Outubro de 2007 10:45
Para: ICS support mailing
Assunto: Re: [twsocket] problem with TCP server
On Oct 15, 2007, at 05:20, João Gonçalves wrote:
> When I receive data, wit
On Oct 15, 2007, at 05:20, João Gonçalves wrote:
> When I receive data, with the function
> TTcpSrvForm::ClientDataAvailable(TObject *Sender, WORD Error), Ii do
> the
> parsing of the string received and put it on a database. The problem
> is when
> I have 2 clients, part of the information is
Hello João,
If you use UDP then when the receiving machine is busy and packet arrive
then it is lost. So you have to optimize the parsing and saving for
speed. If it is a very lenghty procedure you can give the received data
to another thread to handle it.
---
Rgds, Wilfried [TeamICS]
http://www.
Hello, Im working with the TCP server example supplied,
When I receive data, with the function
TTcpSrvForm::ClientDataAvailable(TObject *Sender, WORD Error), Ii do the
parsing of the string received and put it on a database. The problem is when
I have 2 clients, part of the information is ignored