| View previous topic :: View next topic |
| Author |
Message |
db Guest
|
Posted: Fri Feb 25, 2005 9:57 am Post subject: How to handle OnExecute? |
|
|
Hi,
I'm using the TIdTCPServer component. Can someone please clarify the
operation of the OnExecute event. In what context does the OnExecute happen
and how must it be handled for instance when data is coming in from multiple
clients.
Kind regards
Dieter
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Feb 25, 2005 6:11 pm Post subject: Re: How to handle OnExecute? |
|
|
"db" <db (AT) ccii (DOT) co.za> wrote
| Quote: | In what context does the OnExecute happen
|
In the context of the thread that is specified as a parameter to the event
handler.
| Quote: | and how must it be handled for instance when data is coming
in from multiple clients.
|
The event is multi-threaded. The event handler's parameter specifies the
specific client that is triggering the event. That parameter contains the
Connection object that you use to read from and write to that client.
Gambit
|
|
| Back to top |
|
 |
|