| | |
| | | #include "socket_def.h" |
| | | |
| | | #define BUS_HEAD_SIZE (64 + 2 * sizeof(uint32_t)) |
| | | class BusServerSocket; |
| | | |
| | | struct bus_head_t |
| | | { |
| | |
| | | |
| | | |
| | | class ShmModSocket { |
| | | friend class BusServerSocket; |
| | | private: |
| | | shm_socket_t *shm_socket; |
| | | socket_mod_t mod; |
| | | |
| | | std::set<int> *bus_set; |
| | | |
| | | private: |
| | | inline int _recvfrom_(void **buf, int *size, int *key, struct timespec *timeout, int flags); |
| | | |
| | | int _sub_( char *topic, int size, int key, struct timespec *timeout, int flags); |
| | | int _pub_( char *topic, int topic_size, void *content, int content_size, int key, struct timespec *timeout, int flags); |