简体   繁体   中英

how to stream bitmap data over a socket in cpp?

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM