Embedded TCP/IP stack
4.7.0
|
fnet_return_t fnet_socket_getname | ( | fnet_socket_t | s, |
struct fnet_sockaddr * | name, | ||
fnet_size_t * | namelen | ||
) |
Retrieves the current name for the specified socket.
s | Descriptor identifying a socket. |
name | Structure that receives the name (address) of the socket s . |
namelen | Pointer to the size of the name structure. |
This function retrieves the current name for the specified socket s
and stores it in the name
.
It is used on a bound or connected socket.