Epson C32C824151 - UB E02 Print Server Technical Reference Manual page 60

10base-t/100base-tx ethernet interface board
Table of Contents

Advertisement

/* 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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ub-e02

Table of Contents