mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-09 23:57:50 +01:00
Problem: formatting inconsistent
Solution: applied clang-format
This commit is contained in:
@@ -41,35 +41,30 @@
|
||||
|
||||
namespace zmq
|
||||
{
|
||||
class tipc_address_t
|
||||
{
|
||||
public:
|
||||
tipc_address_t ();
|
||||
tipc_address_t (const sockaddr *sa, socklen_t sa_len);
|
||||
~tipc_address_t ();
|
||||
|
||||
class tipc_address_t
|
||||
{
|
||||
public:
|
||||
// This function sets up the address "{type, lower, upper}" for TIPC transport
|
||||
int resolve (const char *name);
|
||||
|
||||
tipc_address_t ();
|
||||
tipc_address_t (const sockaddr *sa, socklen_t sa_len);
|
||||
~tipc_address_t ();
|
||||
// The opposite to resolve()
|
||||
int to_string (std::string &addr_);
|
||||
|
||||
// This function sets up the address "{type, lower, upper}" for TIPC transport
|
||||
int resolve (const char *name);
|
||||
const sockaddr *addr () const;
|
||||
socklen_t addrlen () const;
|
||||
|
||||
// The opposite to resolve()
|
||||
int to_string (std::string &addr_);
|
||||
|
||||
const sockaddr *addr () const;
|
||||
socklen_t addrlen () const;
|
||||
|
||||
private:
|
||||
|
||||
struct sockaddr_tipc address;
|
||||
|
||||
tipc_address_t (const tipc_address_t&);
|
||||
const tipc_address_t &operator = (const tipc_address_t&);
|
||||
};
|
||||
private:
|
||||
struct sockaddr_tipc address;
|
||||
|
||||
tipc_address_t (const tipc_address_t &);
|
||||
const tipc_address_t &operator= (const tipc_address_t &);
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user