Re: [twsocket] Design problem: function result and getAsync

2005-11-03 Thread Francois Piette
> How do I have to design my unit so that I > create a nice and simple function call in > my main program but the actual > code resides in a different unit? This is a perfect case where writing a component (or a class) is very helpful. In the component or class, you can encapsulate everything rel

Re: [twsocket] Design problem: function result and getAsync

2005-11-03 Thread Wilfried Mestdagh
Hello Lutz, Just write as always but you have a typical code that need to be executed in a separate object. So let the object behave as a normal ojbect. Later it is also very easy to use the thing in other applications. And you can use the normal async methods. unit uJob type TJobResult = proc

Re: [twsocket] Design problem: function result and getAsync

2005-11-03 Thread Lutz Schröer
Wilfried Mestdagh wrote: > unit uJob Thanks. Your piece of code will give me a good start off. Lutz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

[twsocket] Creating Console Applications with ICS

2005-11-03 Thread Patrick Wong
Dear all, I am using BCB5 for application development. The native console wizard creates no message loop by default. I browse the ICS source code and find there is a ConApp.pas that has its message loop. How can I start a console project in BCB by invoking this ConApp instead of the console

Re: [twsocket] transmission stress test

2005-11-03 Thread Piotr Dałek
Hello! > Have a look at TTWSChatForm.CliWSocketDataAvailable in TWSChat1.pas > source > file. There is a RcvBuf which is a stically allocated array of char (you > can > make it dynamically allocated) where data is received and the end of what > has already been received. RcvLen variable keep trac