Use socklen_t type for argument for getsockname()
drwxr-xr-x - cde