GuoWenxue
2022-04-29 47579e3790b1ee5a1ad2ce35ea6028cd9ddf6ea0
update client_main.c to use packet_segmented_pack
1 files modified
2 ■■■ changed files
apue/project_socket/main/client_main.c 2 ●●● patch | view | raw | blame | history
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'},