getsockname (detection of own IP) usage?

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

getsockname (detection of own IP) usage?

Post by pz1 »

Found this in the fixes list of the last release candidates.
I did not find a reference to it in the developers manual. Can you give an example of its usage?
Hope I can use this in one of my userModules to get the ipname for the raspberry localhost?
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: getsockname (detection of own IP) usage?

Post by PoltoS »

Sonos module uses this - it is needed to announce own IP in the list of "listeners" of UDP notifier on Sonos.

Updated the manual
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: getsockname (detection of own IP) usage?

Post by pz1 »

PoltoS wrote:Sonos module uses this
Thanks. I had been looking for getsockname on github, but got no hits. I now understand why
Post Reply