1 2 3 4 5 6 7 8 9 10 11
|
while (connect(sSocket,(sockaddr*)&addr,sizeof(addr))!=0) {}
while (!GetAsyncKeyState(VK_ESCAPE)) {
s=4*w*h;
while (s>0) {
n=send(sSocket,buf,s,0); s-=n;
for (i=0; i<s; i++) {buf[i]=buf[i+n];}
}
BitBlt(MemDC,0,0,w,h,hdc,0,0,SRCCOPY);
GetDIBits(MemDC,hBit,0,h,buf,&bmi,DIB_RGB_COLORS);
}
|