[英]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.我正在 cpp 中处理一个远程管理项目,该项目将通过 winsock 在位图对象中流式传输图形数据。 The winsock send and rcv function use only buffers of data type char*.
winsock send 和 rcv 函数仅使用数据类型为 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.将缓冲区转换为 char * 并将缓冲区的大小(以字节为单位)作为长度传递。 Note that send() can only deal with whole bytes.
请注意, send() 只能处理整个字节。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.