The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > OS X (Apple)
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 04-27-2008
fpmurphy fpmurphy is offline
Moderator
 

Join Date: Dec 2003
Location: /ksh93
Posts: 883
One of the problems with your code is that you are using IP address INADDR_ANY. This allows your program to work without knowing the IP address of the system it is running on, or, in the case of a system with multiple network interfaces, it allows your server to receive packets destined to any of the interfaces. However there are issues with using INADDR_ANY. Do a Google search on INADDR_ANY for more information.

I suggest that you bind to a specific server address.
Reply With Quote