Qpid Proton C API  0.37.0
netaddr.h File Reference

Unsettled API - The network address of a proactor transport. More...

#include <proton/import_export.h>
#include <proton/types.h>

Go to the source code of this file.

Typedefs

typedef struct pn_netaddr_t pn_netaddr_t
 Unsettled API - The network address of a proactor transport.
 

Functions

PNP_EXTERN int pn_netaddr_str (const pn_netaddr_t *addr, char *buf, size_t size)
 Format a network address string in buf. More...
 
PNP_EXTERN const pn_netaddr_tpn_transport_local_addr (pn_transport_t *t)
 Get the local address of a transport. More...
 
PNP_EXTERN const pn_netaddr_tpn_transport_remote_addr (pn_transport_t *t)
 Get the local address of a transport. More...
 
PNP_EXTERN const pn_netaddr_tpn_listener_addr (pn_listener_t *l)
 Get the listening addresses of a listener. More...
 
PNP_EXTERN const pn_netaddr_tpn_netaddr_next (const pn_netaddr_t *na)
 
PNP_EXTERN const struct sockaddr * pn_netaddr_sockaddr (const pn_netaddr_t *na)
 On POSIX or Windows, get the underlying struct sockaddr. More...
 
PNP_EXTERN size_t pn_netaddr_socklen (const pn_netaddr_t *na)
 On POSIX or Windows, get the size of the underlying struct sockaddr. More...
 
PNP_EXTERN int pn_netaddr_host_port (const pn_netaddr_t *na, char *host, size_t hlen, char *port, size_t plen)
 Get the host and port name from na as separate strings. More...
 
PNP_EXTERN const pn_netaddr_tpn_netaddr_local (pn_transport_t *t)
 Deprecated - Use pn_transport_local_addr()
 
PNP_EXTERN const pn_netaddr_tpn_netaddr_remote (pn_transport_t *t)
 Deprecated - Use pn_transport_remote_addr()
 
PNP_EXTERN const pn_netaddr_tpn_netaddr_listening (pn_listener_t *l)
 Deprecated - Use pn_listener_addr()
 

Detailed Description

Unsettled API - The network address of a proactor transport.