mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-13 20:37:32 +01:00
Problem: formatting inconsistent
Solution: applied clang-format
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user