From 00dba6082e245d917cb7d6eed3c627211ff41cd7 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期五, 25 九月 2020 15:53:21 +0800
Subject: [PATCH] update
---
test_socket/dgram_mod_survey.c | 6 +++---
test_socket/Makefile | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/test_socket/Makefile b/test_socket/Makefile
index f4b24ef..722618a 100644
--- a/test_socket/Makefile
+++ b/test_socket/Makefile
@@ -2,7 +2,7 @@
# Makefile for common library.
#
ROOT=..
-LDLIBS+=-Wl,-rpath=$(ROOT)/lib:$(ROOT)/build/lib
+# LDLIBS+=-Wl,-rpath=$(ROOT)/lib:$(ROOT)/build/lib
# 寮�婧愬伐鍏峰寘璺緞
LDDIR += -L$(ROOT)/build/lib
# 寮�婧愬伐鍏峰寘
diff --git a/test_socket/dgram_mod_survey.c b/test_socket/dgram_mod_survey.c
index bab06c3..4abce2c 100644
--- a/test_socket/dgram_mod_survey.c
+++ b/test_socket/dgram_mod_survey.c
@@ -25,7 +25,7 @@
int rv;
int remote_port;
while (true) {
- if ((rv = dgram_mod_recvfrom_timeout(socket, &recvbuf, &size, &remote_port, 5, 0) ) == 0) {
+ if ((rv = dgram_mod_recvfrom_timeout(socket, &recvbuf, &size, &remote_port, 15, 0) ) == 0) {
printf( "RECEIVED HREARTBEAT FROM %d: %s\n", remote_port, recvbuf);
free(recvbuf);
}
@@ -43,7 +43,7 @@
sprintf(sendbuf, "%d", i);
printf("SEND HEART:%s\n", sendbuf);
dgram_mod_sendto(socket, sendbuf, strlen(sendbuf) + 1, port);
- sleep(1);
+ // sleep(1);
i++;
}
dgram_mod_close_socket(socket);
@@ -124,4 +124,4 @@
shm_destroy();
return 0;
-}
\ No newline at end of file
+}
--
Gitblit v1.8.0