send() function returns more bytes that it was required c++

后端 未结 4 968
灰色年华
灰色年华 2021-01-27 06:47

I am doing a socket program and, after my server is connected with the device, I am trying to send a message to him. But the send() function returns a number of bytes greater th

4条回答
  •  离开以前
    2021-01-27 06:52

    The type of HEX_bufferMessage is pointer to CHAR. You are using sizeof( HEX_bufferMessage ) that is equal to 8 in your paltform.

提交回复
热议问题