Mega Search
23.2 Million


Sign Up

Make a donation  
Indy9 TIdTCPServer - Which port / binding does data come fro  
News Group: embarcadero.public.delphi.internet.winsock

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  
News Group: embarcadero.public.delphi.internet.winsock
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)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 21-Dec-2014, at 11:06 PM EST
From: Remy Lebeau (TeamB)