[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

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]

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 João Gonçalves
Hello, thank you for your answers, 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 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

[twsocket] TWSocketThrdServer

2007-10-15 Thread Ana Onarres
Hello, I want to create a server socket that accepts connections of several clients. Every client, first, send data to server. This data are validated for server and then the server sends data to the client. What difference is between to use TWSocketThrdServer and use TWSocketServer with

Re: [twsocket] problem with TCP server

2007-10-15 Thread João Gonçalves
Hello, I have to use linemode to false, since the server receives data from independent hardware modules. If I put it to true, I receive a character at a time. My problem is that the processing of some data takes a quite amount of time, and the server doesn´t processes the data, Is there any way

[twsocket] ICS FTP Client list command result

2007-10-15 Thread Ian Thompson
Hi. Just started using the ICS stuff and I can’t figure out where the returned file list is put or access when I issue a LIST of LS command. Checked the source header and FAQ first, but (unless I missed it) I can't see anything on the subject other than the list is placed in a local file. Where?

Re: [twsocket] TWSocketThrdServer

2007-10-15 Thread Arno Garrels
Ana Onarres wrote: Hello, I want to create a server socket that accepts connections of several clients. Every client, first, send data to server. This data are validated for server and then the server sends data to the client. What difference is between to use TWSocketThrdServer and use

Re: [twsocket] TWSocketThrdServer

2007-10-15 Thread [EMAIL PROTECTED]
QUOTE: Anne What difference is between to use TWSocketThrdServer and use TWSocketServer with ClientThread? Which is better for me? END. TWSocketThrdServer spawns a new thread for each incoming client (or a new thread after the maximum amount of clients per threads has been reached).

[twsocket] A TFtpCli application performance question

2007-10-15 Thread Arno Garrels
Hi, I've written a FTP-uploader without taking much care of speed issues. It uploads 17000 files with total size of 830 MB in 56 mins in my 100 MBit/s LAN (logging each FTP-command). What do you think, is that: a) Poor b) OK c) Fast I currently don't have any idea. -- Arno Garrels [TeamICS]

Re: [twsocket] A TFtpCli application performance question

2007-10-15 Thread Arno Garrels
Francois PIETTE wrote: I've written a FTP-uploader without taking much care of speed issues. It uploads 17000 files with total size of 830 MB in 56 mins in my 100 MBit/s LAN (logging each FTP-command). What do you think, is that: a) Poor b) OK c) Fast I currently don't have any idea.