Address already in use: JVM_Bind- means that after the previous work, your operating system is not closed. It closes with a timeout of about 30-180 seconds.
, java, C , bind :
int yes = 1;
setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(int));
: () SO_REUSEADDR sockfd.
java .