I\'m prepping for a simple work project and am trying to familiarize myself with the basics of socket programming in a Unix dev environment. At this point, I have some basic
From the looks of your code you are not doing connect or accept on the socket. Until you have done this the data you get from getsockname is undefined.