Re: [twsocket] problem with TCP server

2007-10-16 Thread João Gonçalves
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

Re: [twsocket] problem with TCP server

2007-10-16 Thread Francois Piette
>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

Re: [twsocket] problem with TCP server

2007-10-15 Thread João Gonçalves
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

Re: [twsocket] problem with TCP server

2007-10-15 Thread João Gonçalves
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

Re: [twsocket] problem with TCP server

2007-10-15 Thread DZ-Jay
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

Re: [twsocket] problem with TCP server

2007-10-15 Thread João Gonçalves
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

Re: [twsocket] problem with TCP server

2007-10-15 Thread DZ-Jay
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

Re: [twsocket] problem with TCP server

2007-10-15 Thread Wilfried Mestdagh
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.

[twsocket] problem with TCP server

2007-10-15 Thread João Gonçalves
Hello, I’m 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