how to stream bitmap data over a socket in cpp?
59 观看
1回复
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
0像
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 发布者: 2017 年 12 月 27 日来自类别的问题 :
- c++ 理解指针有什么障碍,克服它们可以做些什么?
- c++ 在C ++中解析INI文件的最简单方法是什么?
- c++ 什么时候应该在C ++中使用“朋友”?
- c++ 你如何清除stringstream变量?
- c++ 在C ++中,构造函数和析构函数可以是内联函数吗?
- c++ 在C ++中,什么是虚拟基类?
- c++ 什么是C / C ++程序及其插件DLL的最佳免费内存泄漏检测器?
- c++ 如何在C ++(Unicode)中将std :: string转换为LPCWSTR
- c++ 常规投放与static_cast与dynamic_cast
- c++ C ++强制转换语法样式
- c++ 如何从Windows注册表中读取值
- c++ 哪些C ++编译器进行尾递归优化?
- c++ C ++和Java中“泛型”类型之间有什么区别?
- c++ 如何将反射添加到C ++应用程序?
- c++ 如何在c ++中调用:: CreateProcess来启动Windows可执行文件?
- c++ 为什么库链接的顺序有时会导致GCC错误?
- c++ How do you detect/avoid Memory leaks in your (Unmanaged) code?
- c++ 你如何设置,清除和切换一个位?
- c++ 从c ++程序调用python进行分发
- c++ 如何从C ++中的字符串获取文件扩展名