Add hint to error when binding socket

This commit is contained in:
Stephen Seo 2024-08-29 16:48:43 +09:00
parent d46f617b4a
commit 77945f34b9

View file

@ -74,7 +74,8 @@ int create_tcp_socket(unsigned short port) {
sizeof(struct sockaddr_in6));
if (ret != 0) {
close(tcp_socket);
puts("ERROR: Failed to bind socket!");
puts("ERROR: Failed to bind socket! (Maybe just attempted to reuse socket "
"that didn't get \"cleaned up\" yet? Use different port?)");
return -1;
}