I am using netmeeting SDK to make a peer-to-peering sharing program.

Now I want to manually block and permit income call by the incoming IP.

for example, when a call is arrived, I want to check if that IP is IP of IP of my friend.

how should I use the Getaddr() to check that IP ?