Problem: formatting inconsistent

Solution: applied clang-format
This commit is contained in:
sigiesec
2018-02-01 11:46:09 +01:00
parent 6d8baea714
commit 41f459e1dc
331 changed files with 13208 additions and 13691 deletions

View File

@@ -37,42 +37,41 @@
namespace zmq
{
class udp_address_t
{
public:
class udp_address_t
{
public:
udp_address_t ();
virtual ~udp_address_t ();
udp_address_t ();
virtual ~udp_address_t ();
int resolve (const char *name_, bool receiver_);
int resolve (const char *name_, bool receiver_);
// The opposite to resolve()
virtual int to_string (std::string &addr_);
// The opposite to resolve()
virtual int to_string (std::string &addr_);
#if defined ZMQ_HAVE_WINDOWS
unsigned short family () const;
unsigned short family () const;
#else
sa_family_t family () const;
sa_family_t family () const;
#endif
const sockaddr *bind_addr () const;
socklen_t bind_addrlen () const;
const sockaddr *bind_addr () const;
socklen_t bind_addrlen () const;
const sockaddr *dest_addr () const;
socklen_t dest_addrlen () const;
const sockaddr *dest_addr () const;
socklen_t dest_addrlen () const;
bool is_mcast () const;
bool is_mcast () const;
const in_addr multicast_ip () const;
const in_addr interface_ip () const;
const in_addr multicast_ip () const;
const in_addr interface_ip () const;
private:
in_addr multicast;
in_addr iface;
sockaddr_in bind_address;
sockaddr_in dest_address;
bool is_multicast;
std::string address;
};
private:
in_addr multicast;
in_addr iface;
sockaddr_in bind_address;
sockaddr_in dest_address;
bool is_multicast;
std::string address;
};
}
#endif