Displaying 1 result from an estimated 1 matches for "dev_to_bind_to".
2006 Jul 13
1
Binding to a local IP address when mounting smb file system.
...port: "
<< ip_port << endl);
}
2) I need to be able to specify the local Network device name. This will be
used to also help bind to a specific local interface. This will be passed
to setsockopt before the connect() is called.
Example code:
if (dev_to_bind_to) {
// Bind to specific device.
#ifndef __WIN32__
if (setsockopt(s, SOL_SOCKET, SO_BINDTODEVICE,
dev_to_bind_to, DEV_NAME_LEN + 1)) {
VLOG_ERR(VLOG << "ERROR: tcp-connect, setsockopt (BINDTODEVICE): "
<< LFSTRER...