| | |
| | | eSockSub, |
| | | eSockEnd, |
| | | }; |
| | | std::vector<std::unique_ptr<ShmSocket>> sockets_; |
| | | std::vector<std::shared_ptr<ShmSocket>> sockets_; |
| | | |
| | | ShmSocket &SockNode() { return *sockets_[eSockNode]; } |
| | | ShmSocket &SockPub() { return *sockets_[eSockPub]; } |
| | | ShmSocket &SockSub() { return *sockets_[eSockSub]; } |
| | | ShmSocket &SockClient() { return *sockets_[eSockClient]; } |
| | | ShmSocket &SockServer() { return *sockets_[eSockServer]; } |
| | | |
| | | void SetProcIndex(int index) |
| | | { |
| | | proc_index_ = index; |
| | | for (int i = eSockStart; i < eSockEnd; ++i) { |
| | | sockets_[i]->SetNodeProc(index, i); |
| | | } |
| | | } |
| | | |
| | | enum State { |
| | | eStateUnregistered, |
| | |
| | | std::mutex mutex_; |
| | | MQId ssn_id_ = 0; |
| | | std::atomic<State> state_; |
| | | int proc_index_ = -1; |
| | | |
| | | TopicQueryCache topic_query_cache_; |
| | | }; |