}
/**
- * Look up the local side of a connected socket structure.
+ * Look up the remote side of a connected socket structure.
*
* \param sockfd The file descriptor of the socket.
*
* \return A pointer to a static buffer containing hostname an port. This
* buffer must not be freed by the caller.
- *
- * \sa remote_name().
- */
-char *local_name(int sockfd)
-{
- return __get_sock_name(sockfd, getsockname);
-}
-
-/**
- * Look up the remote side of a connected socket structure.
- *
- * \param sockfd The file descriptor of the socket.
- *
- * \return Analogous to the return value of \ref local_name() but for the
- * remote side.
- *
- * \sa local_name().
*/
char *remote_name(int sockfd)
{
}
/** Pretty-printing of IPv4/6 socket addresses */
-extern char *local_name(int sockfd);
extern char *remote_name(int sockfd);
/**