From 47579e3790b1ee5a1ad2ce35ea6028cd9ddf6ea0 Mon Sep 17 00:00:00 2001
From: GuoWenxue <“guowenxue@gmail.com”>
Date: Fri, 29 Apr 2022 09:23:27 +0800
Subject: [PATCH] update client_main.c to use packet_segmented_pack

---
 apue/project_socket/main/client_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/apue/project_socket/main/client_main.c b/apue/project_socket/main/client_main.c
index 41b04ae..80da3ec 100644
--- a/apue/project_socket/main/client_main.c
+++ b/apue/project_socket/main/client_main.c
@@ -51,7 +51,7 @@
 	char                 pack_buf[1024];
 	int                  pack_bytes;
 	pack_info_t          pack_info;
-	pack_proc_t          pack_proc = packet_string_pack; /* use string packet */
+	pack_proc_t          pack_proc = packet_segmented_pack; /* use string packet */
 
   	struct option        opts[] = {
 		{"ipaddr", required_argument, NULL, 'i'},

--
Gitblit v1.9.1