[twsocket] don`t connect simply client to simply server

2009-11-11 Thread Alexey Voytsehovich
Hi. Help please. This code --server-- program serverdelphi; {$APPTYPE CONSOLE} uses sysutils, dateutils, OverbyteIcsWSockBuf, OverbyteIcsWSocket, OverbyteIcsWSocketS; type { TWorkClass } TWorkClass = class public procedure StateChange(Sender: TObject; OldState, NewState :

Re: [twsocket] don`t connect simply client to simply server

2009-11-11 Thread Francois PIETTE
Hello Alexey, Your code has avery common flaw: there is no message pump allowing events to be processed. Look at one of the console demo to see how to build a console mode program with a message pump. btw: Do not use OnStateChange event for anything else than displaying informations. Use

Re: [twsocket] don`t connect simply client to simply server

2009-11-11 Thread Alexey Voytsehovich
Hello Francois, Wednesday, November 11, 2009, 4:02:15 PM, you wrote: Hello Alexey, Your code has avery common flaw: there is no message pump allowing events to be processed. Look at one of the console demo to see how to build a console mode program with a message pump. tnx. it`s working :)