Epson UB-E02 Specifications Page 60

  • Download
  • Add to my manuals
  • Print
  • Page
    / 84
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 59
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;
}
Page view 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 83 84

Comments to this Manuals

No comments