|
|
@ -92,7 +92,7 @@ protect_socket(int fd) |
|
|
|
return ret; |
|
|
|
} |
|
|
|
|
|
|
|
void |
|
|
|
int |
|
|
|
send_traffic_stat(uint64_t tx, uint64_t rx) |
|
|
|
{ |
|
|
|
int sock; |
|
|
@ -129,11 +129,5 @@ send_traffic_stat(uint64_t tx, uint64_t rx) |
|
|
|
return -1; |
|
|
|
} |
|
|
|
|
|
|
|
if (recv(sock, &ret, 1, 0) == -1) { |
|
|
|
ERROR("[android] recv"); |
|
|
|
close(sock); |
|
|
|
return -1; |
|
|
|
} |
|
|
|
|
|
|
|
close(sock); |
|
|
|
} |