mongoc_socket_getnameinfo man page

mongoc_socket_getnameinfo() — This is a helper around getting the local name of a socket. It is a wrapper around getpeername() and getnameinfo().

Synopsis

char *
mongoc_socket_getnameinfo (mongoc_socket_t *sock);

Parameters

sock
A mongoc_socket_t

Description

This is a helper around getting the local name of a socket. It is a wrapper around getpeername(3) and getnameinfo(3)

Returns

A newly allocated string that should be freed with bson_free(3)

Colophon

This page is part of MongoDB C Driver. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

Info

2016‐10‐19 MongoDB C Driver