Client IP Address

After I create a receive socket I need to get the IP address of the client. I have not found any documentation on how to accomplish this (C Language). Does anyone know of a way to get the sin_addr?

Thanks in advance

After reading the docs I think I have discovered. The receivefrom will give the client ip address. I read it as an input parameter rather than output.

Thx