9 #ifndef FAIRMQSOCKETNN_H_ 10 #define FAIRMQSOCKETNN_H_ 15 #include "FairMQSocket.h" 16 #include "FairMQMessage.h" 26 std::string GetId()
const override {
return fId; }
28 bool Bind(
const std::string& address)
override;
29 bool Connect(
const std::string& address)
override;
31 int Send(FairMQMessagePtr& msg,
const int timeout = -1)
override;
32 int Receive(FairMQMessagePtr& msg,
const int timeout = -1)
override;
33 int64_t Send(std::vector<std::unique_ptr<FairMQMessage>>& msgVec,
const int timeout = -1)
override;
34 int64_t Receive(std::vector<std::unique_ptr<FairMQMessage>>& msgVec,
const int timeout = -1)
override;
36 int GetSocket()
const;
38 void Close()
override;
40 static void Interrupt();
43 void SetOption(
const std::string& option,
const void* value,
size_t valueSize)
override;
44 void GetOption(
const std::string& option,
void* value,
size_t* valueSize)
override;
46 void SetLinger(
const int value)
override;
47 int GetLinger()
const override;
48 void SetSndBufSize(
const int value)
override;
49 int GetSndBufSize()
const override;
50 void SetRcvBufSize(
const int value)
override;
51 int GetRcvBufSize()
const override;
52 void SetSndKernelSize(
const int value)
override;
53 int GetSndKernelSize()
const override;
54 void SetRcvKernelSize(
const int value)
override;
55 int GetRcvKernelSize()
const override;
57 unsigned long GetBytesTx()
const override;
58 unsigned long GetBytesRx()
const override;
59 unsigned long GetMessagesTx()
const override;
60 unsigned long GetMessagesRx()
const override;
62 static int GetConstant(
const std::string& constant);
69 std::atomic<unsigned long> fBytesTx;
70 std::atomic<unsigned long> fBytesRx;
71 std::atomic<unsigned long> fMessagesTx;
72 std::atomic<unsigned long> fMessagesRx;
74 static std::atomic<bool> fInterrupted;
Definition: FairMQTransportFactory.h:30
Definition: FairMQSocket.h:19
Definition: FairMQSocketNN.h:19