| | |
| | | #include "usg_common.h" |
| | | #include "mod_socket.h" |
| | | #include "shm_socket.h" |
| | | #include "usg_common.h" |
| | | #include "shm_allocator.h" |
| | | #include "mem_pool.h" |
| | | #include "hashtable.h" |
| | | #include "sem_util.h" |
| | | #include "logger_factory.h" |
| | | |
| | | static Logger logger = LoggerFactory::getLogger(); |
| | | |
| | | typedef struct mod_entry_t |
| | |
| | | */ |
| | | void *mod_open_socket(int mod) { |
| | | mod_socket_t *socket = (mod_socket_t *)malloc(sizeof(mod_socket_t)); |
| | | socket->shm_socket=shm_open_socket(); |
| | | socket->shm_socket=shm_open_socket(SHM_SOCKET_STREAM); |
| | | socket->is_server = 0; |
| | | socket->mod = (socket_mod_t)mod; |
| | | socket->recvQueue = new LockFreeQueue<mod_entry_t, DM_Allocator>(16); |