GetBindToDevice gets value for SO_BINDTODEVICE option.
()
| 689 | |
| 690 | // GetBindToDevice gets value for SO_BINDTODEVICE option. |
| 691 | func (so *SocketOptions) GetBindToDevice() int32 { |
| 692 | return so.bindToDevice.Load() |
| 693 | } |
| 694 | |
| 695 | // SetBindToDevice sets value for SO_BINDTODEVICE option. If bindToDevice is |
| 696 | // zero, the socket device binding is removed. |