Epson C32C824151 Technical Reference - Page 60
Programming Samples, Rev.
![]() |
UPC - 000054074415
View all Epson C32C824151 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 60 highlights
/* send data */ send(sock, "EPSON\n", 6, 0); /* gracefully close */ shutdown(sock, 1);/* SD_SEND */ while (1) { char buf[64]; int n = recv(sock, buf, 64, 0); if (n = SOCKET_ERROR || n == 0) break; } shutdown(sock, 2);/* SD_BOTH */ /* close socket */ closesocket(sock); return 0; } 4-4 Programming Samples Rev. A
![](/manual_guide/products/epson-c32c824151-technical-reference-498e021/60.png)
4-4
Programming Samples
Rev. A
/* send data */
send(sock, "EPSON\n", 6, 0);
/* gracefully close */
shutdown(sock, 1);/* SD_SEND */
while (1) {
char buf[64];
int n = recv(sock, buf, 64, 0);
if (n = SOCKET_ERROR || n == 0)
break;
}
shutdown(sock, 2);/* SD_BOTH */
/* close socket */
closesocket(sock);
return 0;
}