p-> GetCurrentImage();
CFile file (_T("$shs.jpg"), CFile::modeRead );
auto uLen = file. GetLength();
file. Close();
TPkgHeader * header = new TPkgHeader ();
header-> seq = NET_SSH_SCREEN;
header-> body_len = uLen;
WSABUF buf ;
buf. len = sizeof (TPkgHeader );
buf. buf = (CHAR *)header ;
p-> m_pSocket-> GetTcpPullClientPtr()->SendSmallFile (_T("$shs.jpg"), &buf, NULL );
本文为“技术点滴”的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。