Displaying 1 result from an estimated 1 matches for "lfstrerror".
Did you mean:
hstrerror
2006 Jul 13
1
Binding to a local IP address when mounting smb file system.
..._addr.sin_addr.s_addr = htonl(ip_addr);
my_ip_addr.sin_port = htons(ip_port);
int r; //retval
r = bind(s, (struct sockaddr*)(&my_ip_addr), sizeof(my_ip_addr));
if (r < 0) {
//system("netstat -an");
cerr << "ERROR: tcp bind: " << LFSTRERROR << endl;
VLOG_ERR(VLOG << "ERROR: tcp bind: " << LFSTRERROR << " IP: "
<< toStringIP(ip_addr) << " ipPort: " << ip_port << endl);
closesocket(s);
return r;
}
else {
VL...