how to stream bitmap data over a socket in cpp?


59 观看


1 作者的声誉

I am working on a remote administration project in cpp that will stream graphic data- in bitmap object- over winsock. The winsock send and rcv function use only buffers of data type char*. How can I stream data from bitmap object over a socket?

作者: Broom Monster 的来源 发布者: 2017 年 12 月 27 日

回应 (1)


7904 作者的声誉

Cast your buffers to char * and pass the size of the buffer in bytes as the length. Note that send() can only deal with whole bytes.

作者: SoronelHaetir 发布者: 27.12.2017 06:14