Re: [twsocket] Newbie problems with TWSocket. (balbaro)

2007-05-20 Thread Francois PIETTE
> But then for a response > Is this correct ? > > 1) In server.DataAvailable event : server : ClientServer.sendstring > response; > 2) In Server : ClientServer.Datasent event : > server.clientserver.closedelayed It depends on the protocol you are designing. Most protocols in use (FTP, SMTP, POP3 a

Re: [twsocket] Newbie problems with TWSocket. (balbaro)

2007-05-20 Thread Wilfried Mestdagh
Hello Balbaro, > 1) connect the client > 2) in Client.SessionConnected event : send the string > 3) In Client.Datasent event : client.closedelayed No. This will not garantie that the data is arrived by the server. You can make a protocol for it, so that the server send back ACK "after" it has han

[twsocket] Newbie problems with TWSocket. (balbaro)

2007-05-20 Thread balbaro
t; > -- > > Message: 1 > Date: Sat, 19 May 2007 19:15:25 +0200 > From: balbaro <[EMAIL PROTECTED]> > Subject: [twsocket] Newbie problems with TWSocket. > To: twsocket@elists.org > Message-ID: <[EM

Re: [twsocket] Newbie problems with TWSocket.

2007-05-20 Thread Wilfried Mestdagh
Hello Balbaro, > Why is the first string always 'Server Ready" ? Look at the Banner property in TWSocketServer. YOu can set this to '' in your code just before you call Listen if you dont want a Banner, or you can set your own. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/

Re: [twsocket] Newbie problems with TWSocket.

2007-05-19 Thread Francois PIETTE
> I'm puzzled to find out what i'm doing wrong. > I made a component with both the TWsocketserver > and A TWsocket as client to be used in a app. > > Server is running. > > Can i connect and send a string in the same event ? No. ICS is asynchronous. Calling Connect is just a reauest to connect. Yo

[twsocket] Newbie problems with TWSocket.

2007-05-19 Thread balbaro
Hello all, I'm puzzled to find out what i'm doing wrong. I made a component with both the TWsocketserver and A TWsocket as client to be used in a app. Server is running. Can i connect and send a string in the same event ? For example : client.connect wait for state connected sendstring c