Re: Problems with SO_REUSEADDR

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Matthias Moetje [MVP] wrote:

Phil,

did you bind both sockets to a specific ip address _and_ port?

I normally bind to INADDR_ANY unless I have a VERY good reason to do otherwise. And yes, the same port # was used.

Did you also use one socket for send and the other for receive
simultaneously?

Yes. Sometimes one sending and MANY receiving or visa versa.

--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com
.



Relevant Pages

  • Re: Maximum sockets
    ... "Phil Frisbie, Jr." ... > you call connectWindows assigns it to a unused port. ... > connect and close less than 3976 sockets every two minutes. ... I thought the WSAEADDRINUSE error occurred only when a connection was ...
    (microsoft.public.win32.programmer.networks)
  • Re: How to listen to more a specific IP and specific ports
    ... bind my socket to specific unlimited and selective IP addresses. ... Moreover, in Unix/Linux Berekly network programming, you can determin the ... port numbers. ...
    (microsoft.public.win32.programmer.networks)
  • Re: How to listen to more a specific IP and specific ports
    ... I have read this long time ago in the textbook Unix Network Programming ... service and connect our socket to INADDR_ANY and then listen for incoming ... Its clear to me on how to bind with ... port numbers. ...
    (microsoft.public.win32.programmer.networks)
  • Re: How to listen to more a specific IP and specific ports
    ... bind my socket to specific unlimited and selective IP addresses. ... Moreover, in Unix/Linux Berekly network programming, you can determin the IP ... port numbers. ...
    (microsoft.public.win32.programmer.networks)
  • Re: How to listen to more a specific IP and specific ports
    ... bind my socket to specific unlimited and selective IP addresses. ... port numbers. ... is not feasible because the particular IPs are not fixed. ...
    (microsoft.public.win32.programmer.networks)