Added proper termination after user pressed CTRL+D, call to mic_tcp_close
This commit is contained in:
parent
dc7fb0af27
commit
9cf49fe991
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,8 @@ int main()
|
|||
printf("[TSOCK] Appel de mic_send avec un message de taille : %d\n", strlen(chaine)+1);
|
||||
printf("[TSOCK] Appel de mic_send valeur de retour : %d\n", sent_size);
|
||||
}
|
||||
|
||||
mic_tcp_close(sockfd);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue