mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
- Proper process termination:
if interrupted with CTRL+C blocking socket calls will return with -1. Each device should call FairMQDevice::Shutdown() before ending the running state to close open sockets, otherwise the interrupt call itself will block. - FIX: Update number of received messages for FairMQFileSink. - Add ability to poll on outputs for FairMQPoller.
This commit is contained in:
committed by
Mohammad Al-Turany
parent
8cd120aef4
commit
0a610926a1
@@ -29,12 +29,13 @@ class FairMQSocket
|
||||
virtual void Bind(const string& address) = 0;
|
||||
virtual void Connect(const string& address) = 0;
|
||||
|
||||
virtual size_t Send(FairMQMessage* msg, const string& flag="") = 0;
|
||||
virtual size_t Receive(FairMQMessage* msg, const string& flag="") = 0;
|
||||
virtual int Send(FairMQMessage* msg, const string& flag="") = 0;
|
||||
virtual int Receive(FairMQMessage* msg, const string& flag="") = 0;
|
||||
|
||||
virtual void* GetSocket() = 0;
|
||||
virtual int GetSocket(int nothing) = 0;
|
||||
virtual void Close() = 0;
|
||||
virtual void Terminate() = 0;
|
||||
|
||||
virtual void SetOption(const string& option, const void* value, size_t valueSize) = 0;
|
||||
virtual void GetOption(const string& option, void* value, size_t* valueSize) = 0;
|
||||
|
Reference in New Issue
Block a user