Hey all (or more specifically Remy if i'm lucky..)
I have a TIdTCPServer with two bindings so it can listen on different ports.
In the onexecute event when i read the data using ReadLn() is there a way to
tell which binding / port it came from?
Thanks
Vote for best question.
Score: 0
# Vote: 0
Date Posted: 20-Dec-2014, at 5:28 PM EST
From: Justin Case
Re: Indy9 TIdTCPServer - Which port / binding does data come
Justin wrote:
> I have a TIdTCPServer with two bindings so it can listen on different
> ports.
>
> In the onexecute event when i read the data using ReadLn() is there
> a way to tell which binding / port it came from?
You can use the AContext.Binding.Port property.
--
Remy Lebeau (TeamB)