Epson UB-E02 Especificações Página 70

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 84
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 69
4-14 Programming Samples Rev. A
buf[13] = 0x00;
/* send packet */
i = sendto(sock, buf, 14, 0, (struct sockaddr*)&addr, sizeof(addr));
/* receive packet */
fromlen = sizeof(addr);
len = recvfrom(sock, buf, MAXBUF, 0, (struct sockaddr*)&addr, &fromlen);
/* print receive packet */
if (len) {
if ((buf[10] == 0x00) && (buf[11] == 0x00))
for (i = 0; i < len; i++)
printf("%3d:%02Xh\n", i, buf[i] & 0xff);
}
/* close socket */
close(sock);
return 0;
}
Vista de página 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 83 84

Comentários a estes Manuais

Sem comentários