// Bind to localhost
if (bind(this->sd, (struct sockaddr *)&addr, sizeof addr) < 0) { ERR("Bind on port failed. " "Requested port may be taken or require root permissions."); goto error;
}
Is there any easy way to run this program without having a printer available? You say it should bind to localhost, and the comment says it should bind to localhost, but the code clearly uses in6addr_any rather than in6addr_loopback.
Please double-check with netstat, or let me know how I can double-check with netstat but without a printer...
Till, could you please double-check this? The code sure looks like it binds to the ipv6 wildcard address:
struct sockaddr_in6 addr;
memset( &addr, 0, sizeof addr);
addr.sin6_ family = AF_INET6;
addr.sin6_ port = htons(port);
addr.sin6_ addr = in6addr_any;
// Bind to localhost
(struct sockaddr *)&addr,
sizeof addr) < 0) {
ERR(" Bind on port failed. "
" Requested port may be taken or require root permissions.");
goto error;
if (bind(this->sd,
}
Is there any easy way to run this program without having a printer available? You say it should bind to localhost, and the comment says it should bind to localhost, but the code clearly uses in6addr_any rather than in6addr_loopback.
Please double-check with netstat, or let me know how I can double-check with netstat but without a printer...
Thanks