You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
clang format apply
This commit is contained in:
@ -30,103 +30,99 @@
|
||||
|
||||
namespace multicast
|
||||
{
|
||||
|
||||
/** @brief MulticastReceive
|
||||
* Wrapper for multicast proto
|
||||
*/
|
||||
* Wrapper for multicast proto
|
||||
*/
|
||||
|
||||
class MulticastImpl;
|
||||
|
||||
class Multicast
|
||||
{
|
||||
public:
|
||||
/** @brief ctor
|
||||
* Base class
|
||||
*/
|
||||
Multicast();
|
||||
public:
|
||||
/** @brief ctor
|
||||
* Base class
|
||||
*/
|
||||
Multicast();
|
||||
|
||||
/** @brief dtor
|
||||
*/
|
||||
virtual ~Multicast()
|
||||
{
|
||||
destroy();
|
||||
}
|
||||
/** @brief dtor
|
||||
*/
|
||||
virtual ~Multicast()
|
||||
{
|
||||
destroy();
|
||||
}
|
||||
|
||||
virtual void destroy() { }
|
||||
virtual void destroy()
|
||||
{
|
||||
}
|
||||
|
||||
int PMCount() const
|
||||
{
|
||||
return fPMCount;
|
||||
}
|
||||
std::string iFName() const
|
||||
{
|
||||
return fIFName;
|
||||
}
|
||||
int portBase() const
|
||||
{
|
||||
return fPortBase;
|
||||
}
|
||||
int bufSize() const
|
||||
{
|
||||
return fBufSize;
|
||||
}
|
||||
|
||||
private:
|
||||
int fPMCount;
|
||||
std::string fIFName;
|
||||
int fPortBase;
|
||||
int fBufSize;
|
||||
int PMCount() const
|
||||
{
|
||||
return fPMCount;
|
||||
}
|
||||
std::string iFName() const
|
||||
{
|
||||
return fIFName;
|
||||
}
|
||||
int portBase() const
|
||||
{
|
||||
return fPortBase;
|
||||
}
|
||||
int bufSize() const
|
||||
{
|
||||
return fBufSize;
|
||||
}
|
||||
|
||||
private:
|
||||
int fPMCount;
|
||||
std::string fIFName;
|
||||
int fPortBase;
|
||||
int fBufSize;
|
||||
};
|
||||
|
||||
class MulticastReceiver: public Multicast
|
||||
class MulticastReceiver : public Multicast
|
||||
{
|
||||
public:
|
||||
/** @brief ctor
|
||||
*
|
||||
*/
|
||||
MulticastReceiver();
|
||||
public:
|
||||
/** @brief ctor
|
||||
*
|
||||
*/
|
||||
MulticastReceiver();
|
||||
|
||||
~MulticastReceiver();
|
||||
~MulticastReceiver();
|
||||
|
||||
messageqcpp::SBS receive();
|
||||
messageqcpp::SBS receive();
|
||||
|
||||
private:
|
||||
// not copyable
|
||||
MulticastReceiver(const MulticastReceiver& rhs);
|
||||
MulticastReceiver& operator=(const MulticastReceiver& rhs);
|
||||
private:
|
||||
// not copyable
|
||||
MulticastReceiver(const MulticastReceiver& rhs);
|
||||
MulticastReceiver& operator=(const MulticastReceiver& rhs);
|
||||
|
||||
messageqcpp::SBS fByteStream;
|
||||
messageqcpp::SBS fByteStream;
|
||||
|
||||
MulticastImpl* fPimpl;
|
||||
MulticastImpl* fPimpl;
|
||||
};
|
||||
|
||||
|
||||
class MulticastSender : public Multicast
|
||||
{
|
||||
public:
|
||||
/** @brief ctor
|
||||
*
|
||||
*/
|
||||
MulticastSender();
|
||||
|
||||
public:
|
||||
/** @brief ctor
|
||||
*
|
||||
*/
|
||||
MulticastSender();
|
||||
~MulticastSender();
|
||||
|
||||
~MulticastSender();
|
||||
/** @brief receive
|
||||
*
|
||||
* @param bytestream to send
|
||||
*/
|
||||
void send(const messageqcpp::ByteStream& bs);
|
||||
|
||||
/** @brief receive
|
||||
*
|
||||
* @param bytestream to send
|
||||
*/
|
||||
void send(const messageqcpp::ByteStream& bs);
|
||||
private:
|
||||
// Not copyable
|
||||
MulticastSender(const MulticastSender& rhs);
|
||||
MulticastSender& operator=(const MulticastSender& rhs);
|
||||
|
||||
private:
|
||||
//Not copyable
|
||||
MulticastSender(const MulticastSender& rhs);
|
||||
MulticastSender& operator=(const MulticastSender& rhs);
|
||||
|
||||
MulticastImpl* fPimpl;
|
||||
MulticastImpl* fPimpl;
|
||||
};
|
||||
|
||||
} //namespace
|
||||
|
||||
|
||||
} // namespace multicast
|
||||
|
Reference in New Issue
Block a user