Re: CSocket::Create() - port allocation
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Fri, 20 Oct 2006 14:16:09 -0400
The change in the ephemeral port allocation postdates the release of VS6. Therefore,
older systems allocate ephemeral ports in the low range; newer systems allocate ephemeral
ports in the new range.
joe
On Fri, 20 Oct 2006 03:05:02 -0700, len <len@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi there.Joseph M. Newcomer [MVP]
I'm using Visual C++ 6 and have an application that uses CSocket::Create()
to allocate a TCP/IP listening port - with a value of 0 passed in as the port
number so that MFC will take care of the allocation.
When I do this, I find that the ports allocated range from 1024 upwards. Is
this correct? Shouldn't the ports allocated range from 49152 through 65535 in
order to avoid the Registered Ports?
Any info would be appreciated!
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: CSocket::Create() - port allocation
- From: Michael K. O'Neill
- Re: CSocket::Create() - port allocation
- Prev by Date: Re: OK to retain a printer DC?
- Next by Date: Re: book recommendations for beginner
- Previous by thread: echo server changes the incoming package's port number
- Next by thread: Re: CSocket::Create() - port allocation
- Index(es):
Relevant Pages
|