From 5c912c70e9333298ff48f7ea15424f72ca977b99 Mon Sep 17 00:00:00 2001 From: Fu Juntang <StrongTiger_001@163.com> Date: 星期五, 17 九月 2021 09:43:55 +0800 Subject: [PATCH] Add the heartbeat logic feature. --- src/socket/shm_mod_socket.cpp | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/socket/shm_mod_socket.cpp b/src/socket/shm_mod_socket.cpp index a94b9c3..7562d56 100644 --- a/src/socket/shm_mod_socket.cpp +++ b/src/socket/shm_mod_socket.cpp @@ -166,8 +166,8 @@ * @key 鍙戦�佺粰璋� * @return 0 鎴愬姛锛� 鍏朵粬鍊� 澶辫触鐨勯敊璇爜 */ -int ShmModSocket::sendto(const void *buf, const int size, const int key, const struct timespec *timeout, int flag) { - int rv = shm_sendto(shm_socket, buf, size, key, timeout, flag); +int ShmModSocket::sendto(const void *buf, const int size, const int key, const struct timespec *timeout, int flag, int reset, int data_set) { + int rv = shm_sendto(shm_socket, buf, size, key, timeout, flag, reset, data_set); if(rv == 0) { logger->debug("ShmModSocket::sendto: %d sendto %d success.\n", get_key(), key); return 0; @@ -182,9 +182,9 @@ * @key 浠庤皝鍝噷鏀跺埌鐨勪俊鎭� * @return 0 鎴愬姛锛� 鍏朵粬鍊� 澶辫触鐨勯敊璇爜 */ -int ShmModSocket::recvfrom( void **buf, int *size, int *key, const struct timespec *timeout, int flag) { +int ShmModSocket::recvfrom( void **buf, int *size, int *key, const struct timespec *timeout, int flag, int reset, int data_set) { - int rv = shm_recvfrom(shm_socket, buf, size, key, timeout, flag); + int rv = shm_recvfrom(shm_socket, buf, size, key, timeout, flag, reset, data_set); if(rv == 0) { logger->debug("ShmModSocket::recvfrom: %d recvfrom %d success.\n", get_key(), *key); -- Gitblit v1.8.0