9 #ifndef FAIRMQSOCKETZMQ_H_ 10 #define FAIRMQSOCKETZMQ_H_ 16 #include "FairMQSocket.h" 17 #include "FairMQMessage.h" 27 std::string GetId()
override;
29 bool Bind(
const std::string& address)
override;
30 bool Connect(
const std::string& address)
override;
32 int Send(FairMQMessagePtr& msg,
const int timeout = -1)
override;
33 int Receive(FairMQMessagePtr& msg,
const int timeout = -1)
override;
34 int64_t Send(std::vector<std::unique_ptr<FairMQMessage>>& msgVec,
const int timeout = -1)
override;
35 int64_t Receive(std::vector<std::unique_ptr<FairMQMessage>>& msgVec,
const int timeout = -1)
override;
37 void* GetSocket()
const;
39 void Close()
override;
41 static void Interrupt();
44 void SetOption(
const std::string& option,
const void* value,
size_t valueSize)
override;
45 void GetOption(
const std::string& option,
void* value,
size_t* valueSize)
override;
47 void SetLinger(
const int value)
override;
48 int GetLinger()
const override;
49 void SetSndBufSize(
const int value)
override;
50 int GetSndBufSize()
const override;
51 void SetRcvBufSize(
const int value)
override;
52 int GetRcvBufSize()
const override;
53 void SetSndKernelSize(
const int value)
override;
54 int GetSndKernelSize()
const override;
55 void SetRcvKernelSize(
const int value)
override;
56 int GetRcvKernelSize()
const override;
58 unsigned long GetBytesTx()
const override;
59 unsigned long GetBytesRx()
const override;
60 unsigned long GetMessagesTx()
const override;
61 unsigned long GetMessagesRx()
const override;
63 static int GetConstant(
const std::string& constant);
70 std::atomic<unsigned long> fBytesTx;
71 std::atomic<unsigned long> fBytesRx;
72 std::atomic<unsigned long> fMessagesTx;
73 std::atomic<unsigned long> fMessagesRx;
75 static std::atomic<bool> fInterrupted;
Definition: FairMQSocketZMQ.h:20
Definition: FairMQTransportFactory.h:28
Definition: FairMQSocket.h:19