Re: How to bind to an already used local port ?
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Sun, 26 Feb 2006 09:25:17 +0200
Hi, Phil!
That impossible for TCP when you are on the same thread ( process ) but
you'll have no errors if listen() issued on different ones. The problem that
this will not work if client did bind ( which is rear case )
Arkady
"Phil Frisbie, Jr." <phil@xxxxxxxxxxxx> wrote in message
news:%23ziMPQWOGHA.1124@xxxxxxxxxxxxxxxxxxxxxxx
Crash wrote:
There must be a way to have 2 processes listen to the same port.
Any one know? I've tried Create & Connect, and setsocopt, but I always
\
get ADDRINUSE error.
Do you mean two TCP sockets listening to the same port number?
If that is what you want then no, you cannot do it.
But if you mean UDP sockets, then yes, you can if you use the SO_REUSEADDR
socket option on BOTH sockets.
--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com
.
- References:
- Re: How to bind to an already used local port ?
- From: Crash
- Re: How to bind to an already used local port ?
- From: Phil Frisbie, Jr.
- Re: How to bind to an already used local port ?
- Prev by Date: Re: Broadcast packets on specific adapter
- Next by Date: Re: GetExtendedTcpTable not available
- Previous by thread: Re: How to bind to an already used local port ?
- Next by thread: Re: Overview active applications DOS
- Index(es):
Relevant Pages
|