added strerror(errno) for send()

pull/28/head
alanbjohnston 7 years ago committed by GitHub
parent a4d6a7e571
commit 720f804053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -911,7 +911,7 @@ int get_tlm_fox() {
digitalWrite (0, LOW);
printf("Sending buffer over socket!\n");
int sock_ret = send(sock, buffer[alt], buffSize, 0);
printf("Result of socket send: %d\n", sock_ret);
printf("Result of socket send: %d errorno: %d \n", sock_ret, strerror(errno));
alt = (++alt) % 2;
printf("Alternate value is %d \n", alt);
}

Loading…
Cancel
Save

Powered by TurnKey Linux.