APUE course source code
Guo Wenxue
58 mins ago a296116cb5e2dcbaf46d1dfbd59392ed952fe681
update socket_client print information
1 files modified
4 ■■■■ changed files
project/2.socketd/socket_client.c 4 ●●●● patch | view | raw | blame | history
project/2.socketd/socket_client.c
@@ -217,7 +217,7 @@
        /*  socket send sample packet */
        if( sample_flag )
        {
            log_debug("socket send sample packet bytes[%d]: %s\n", pack_bytes, pack_buf);
            log_debug("socket send current sample data.\n");
            if( socket_send(&sock, pack_buf, pack_bytes) < 0 )
            {
                log_warn("socket send sample packet failure, save it in database now.\n");
@@ -229,7 +229,7 @@
        /*  socket send cache packet */
        if( !db_read(pack_buf, sizeof(pack_buf), &pack_bytes, &rowid) )
        {
            log_debug("socket send database packet bytes[%d]: %s\n", pack_bytes, pack_buf);
            log_debug("socket send database cache data.\n");
            if( socket_send(&sock, pack_buf, pack_bytes) < 0 )
            {
                log_error("socket send database packet failure");