Reputation: 6111
A very simple question I can't seem to find a definitive answer for.
I have a classic TCP Indy server. I send data in chunks. Each data packet is send in 1 or more chunks. When it arrives the OnExecute is triggered one or more times for each packet. More then one client can send data at any given time. How do I know which client / packet am I receiving data for in the OnExecute? I know its a trivial question probably but I want to have a definitive answer.
Upvotes: 4
Views: 1553
Reputation: 36654
If you can design the protocol, it could be done like this:
The Indy TCP context class can be extended to add custom information for the client connection.
Upvotes: 3