This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
sdk:scripts:dio-server [2018/06/20 15:42] juraschek |
sdk:scripts:dio-server [2022/06/28 13:28] (current) schmitt |
||
---|---|---|---|
Line 144: | Line 144: | ||
/* bind to port (and address) */ | /* bind to port (and address) */ | ||
- | if (ADDR == "") { | + | ret = bind(sock, PORT, ADDR); |
- | ret = bind(sock, PORT, ""); | + | |
- | } else { | + | |
- | ret = bind(sock, PORT, ADDR); | + | |
- | } | + | |
if (ret == -1) { | if (ret == -1) { | ||
printf("ERROR: Unable to bind port %d\n", port); | printf("ERROR: Unable to bind port %d\n", port); |