Embedded TCP/IP stack: fnet_socket_getname

FNET

Embedded TCP/IP stack  4.1.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.

Parameters
sDescriptor identifying a socket.
nameStructure that receives the name (address) of the socket s.
namelenPointer to the size of the name structure.
Returns
This function returns:
See also
fnet_socket_getpeername()

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.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net