Home All Groups Group Topic Archive Search About

tcplistener on multiple addresses

Author
20 Jun 2006 1:03 PM
nt8jbwu02
Is it possible to use a single tcplistener to bind multiple addresses?

Say I have three IP addresses and I want to bind two of the addresses
on port 4000, but not the
third. 

Can I do this with a single component?

Thanks,

Author
20 Jun 2006 2:33 PM
TDC
I'm pretty sure it's all-or-one kind of choice.  Though it's not that
hard to use several TcpListeners at once...

nt8jbw***@sneakemail.com wrote:
Show quoteHide quote
> Is it possible to use a single tcplistener to bind multiple addresses?
>
> Say I have three IP addresses and I want to bind two of the addresses
> on port 4000, but not the
> third. 
>
> Can I do this with a single component?
>
> Thanks,
Author
20 Jun 2006 8:31 PM
nt8jbwu02
So I need a tcpListener and listen thread for each IP address?

If I want to use the same listener routine for all the threads, can I
pass the tcpListener when I start the listener thread?

Thanks.
Author
20 Jun 2006 9:23 PM
Michael D. Ober
Correct and yes you can.

Mike.

<nt8jbw***@sneakemail.com> wrote in message
Show quoteHide quote
news:1150835499.739255.184130@h76g2000cwa.googlegroups.com...
> So I need a tcpListener and listen thread for each IP address?
>
> If I want to use the same listener routine for all the threads, can I
> pass the tcpListener when I start the listener thread?
>
> Thanks.
>