Retrieves the name of the device this socket is bound to, if any.
The buffer in which the device name will be stored.
impl Socket {
fn device(&self, buf: &'a mut [u8]) -> Result<&'a mut CStr, Errno>
}| Name | Description |
|---|---|
| buf | |
Returns the device to which the socket is bound.
socket(7) and SO_BINDTODEVICE therein