net/ and include/nuttx/net: Add getpeername() support

This commit is contained in:
ligd
2018-07-19 07:16:30 -06:00
committed by Gregory Nutt
parent a1cddfbc8c
commit e840038f2d
13 changed files with 410 additions and 4 deletions
+2
View File
@@ -298,6 +298,8 @@ int getsockopt(int sockfd, int level, int option,
int getsockname(int sockfd, FAR struct sockaddr *addr,
FAR socklen_t *addrlen);
int getpeername(int sockfd, FAR struct sockaddr *addr,
FAR socklen_t *addrlen);
#undef EXTERN
#if defined(__cplusplus)