Re: basic socket question
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Mon, 11 Dec 2006 11:36:40 -0800
1) Assuming you mean using the same local IP:port pair,
check out the SO_REUSEADDR socket option and bind.
2) Not sure what you are asking here. Seems the same
question as in 1... If you are asking whether the NAT
router will use the same public IP:port pair for the
second connection, the answer is - it depends on the
router.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Bidu" <bidu@xxxxxxxxxx> wrote in message
news:uVZ76GSHHHA.1064@xxxxxxxxxxxxxxxxxxxxxxx
Sorry if my question is not so sophisticated, but so is my knowledge in
networking...
1. Suppose one thread in my win32 application communicate with some other
party across the internet in ip1:port1 and I want some other thread to
communicate with another party(another ip address) in the same ip:port
(ip1:port1). Is that possible?
2. My UPNP nat router informs my application about the outer IP:PORT that
are opened for my application. Can my application use the corresponding
inner IP:PORT to communicate with another PC on the internet?
Regards
Bidu
.
- References:
- basic socket question
- From: Bidu
- basic socket question
- Prev by Date: Re: WSALookupServiceBegin, P2P & Tablet PC Failure
- Next by Date: Re: Firewall APIs
- Previous by thread: basic socket question
- Next by thread: Re: basic socket question
- Index(es):
Relevant Pages
|