mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
send enc
This commit is contained in:
parent
e37af4a869
commit
cc2fc17ecd
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ void send_tcp(char *msg) {
|
|||
size_t base64_enc_length = Base64encode(base64_enc_str, enc, length_enc);
|
||||
|
||||
for (int i = 0; i <= tcp_entry_last; i++) {
|
||||
if (send(network_array[i].sockfd, msg, strlen(msg), 0) < 0) {
|
||||
if (send(network_array[i].sockfd, base64_enc_str, base64_enc_length, 0) < 0) {
|
||||
close(network_array->sockfd);
|
||||
printf("Removing bad TCP connection!\n");
|
||||
for (int j = i; j < tcp_entry_last; j++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue