|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
tcplistener on multiple addressesIs 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, 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, 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. 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. >
More VS2003 to VS2005 questions
Mouse/Screen Image Status how to launch media player and a selected file from within VB.Net app? Datagrids Locking a Combo-Box How do I make my computer unstupid? asp.net template for user registration how do i compare two string and get the difference? Calling .Net DLL functions in Excel 2003 How to update application settings in vb.net code |
|||||||||||||||||||||||