1#ifndef POSER_CORE_IPADDR_H
2#define POSER_CORE_IPADDR_H
38 CMETHOD ATTR_RETNONNULL;
57 CMETHOD ATTR_NONNULL((2));
74 CMETHOD ATTR_NONNULL((1));
102DECLEXPORT
const char *
104 CMETHOD ATTR_RETNONNULL ATTR_PURE;
115 CMETHOD ATTR_NONNULL((2)) ATTR_PURE;
127 CMETHOD ATTR_NONNULL((2)) ATTR_PURE;
An IPv4 or IPv6 address or network.
PSC_IpAddr * PSC_IpAddr_tov4(const PSC_IpAddr *self, const PSC_IpAddr **prefixes)
Create IPv4 equivalent of a given IPv6 address.
PSC_Proto PSC_IpAddr_proto(const PSC_IpAddr *self)
The protocol of the address.
PSC_IpAddr * PSC_IpAddr_create(const char *str)
PSC_IpAddr default constructor.
int PSC_IpAddr_equals(const PSC_IpAddr *self, const PSC_IpAddr *other)
Compare two addresses for equality.
PSC_IpAddr * PSC_IpAddr_tov6(const PSC_IpAddr *self, const PSC_IpAddr *prefix)
Create IPv6 equivalent of a given IPv4 address.
PSC_IpAddr * PSC_IpAddr_clone(const PSC_IpAddr *other)
PSC_IpAddr copy constructor.
unsigned PSC_IpAddr_prefixlen(const PSC_IpAddr *self)
The prefix length of the address.
const char * PSC_IpAddr_string(const PSC_IpAddr *self)
The canonical string representation of the address.
declaration of the PSC_Proto enum
PSC_Proto
Protocol to use for TCP connections.
Definition: proto.h:10