Returns device physical address as a string.
        See hidraw documentation for value signification, as it depends on
        device's bus type.
500444
def getPhysicalAddress(self, length=512):
        
        name = ctypes.create_string_buffer(length)
        self._ioctl(_HIDIOCGRAWPHYS(length), name, True)
        return name.value
869539
def getIPString():
        
        if not(NetInfo.systemip):
            NetInfo.systemip = ",".join(NetInfo.getSystemIps())
        return NetInfo.systemip
166166
def get_physical_port(self):
        """"""
        obj = None
        if self.is_link_aggregation():
            obj = UnityLinkAggregation.get(self._cli, self.get_id())
        else:
            obj = UnityEthernetPort.get(self._cli, self.get_id())
        return obj
252052
def address(self):
        '''
        
        '''
        return self.API.replace(
            'http://{}:{}'.format(
                self._bridge.hostname,
                self._bridge.port
            ), ''
        )
430272
def get_tc_device(self):
        

        if self.direction == TrafficDirection.OUTGOING:
            return self.device

        if self.direction == TrafficDirection.INCOMING:
            return self.ifb_device

        raise ParameterError(
            "unknown direction", expected=TrafficDirection.LIST, value=self.direction
        )
328463
def _getdevicetuple(iobtdevice):
    
    addr = _macutil.formatdevaddr(iobtdevice.getAddressString())
    name = iobtdevice.getName()
    cod = iobtdevice.getClassOfDevice()
    return (addr, name, cod)
436147
public java.lang.String getPhysicalDeviceDesc() {
    java.lang.Object ref = physicalDeviceDesc_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      physicalDeviceDesc_ = s;
      return s;
    }
  }
16917
private static String printInfo(final Device device)
	{
		final int bus = LibUsb.getBusNumber(device);
		final int address = LibUsb.getDeviceAddress(device);
		int vendor = 0;
		int product = 0;

		final DeviceDescriptor d = new DeviceDescriptor();
		int err = LibUsb.getDeviceDescriptor(device, d);
		if (err == 0) {
			vendor = d.idVendor() & 0xffff;
			product = d.idProduct() & 0xffff;
		}

		final StringBuilder sb = new StringBuilder();
		final String item = vendor != 0 ? toDeviceId(vendor, product) : "";
		sb.append("Bus ").append(bus).append(" Device ").append(address).append(": ID ").append(item);

		final String ind = "    ";
		final DeviceHandle dh = new DeviceHandle();
		err = LibUsb.open(device, dh);
		if (err == 0) {
			try {
				final String man = LibUsb.getStringDescriptor(dh, d.iManufacturer());
				final String prodname = LibUsb.getStringDescriptor(dh, d.iProduct());
				String desc = ind;
				if (prodname != null)
					desc += prodname;
				if (man != null)
					desc += " (" + man + ")";
				if (!desc.equals(ind))
					sb.append("\n").append(desc);
			}
			finally {
				LibUsb.close(dh);
			}
		}

		String attach = "";
		final Device parent = LibUsb.getParent(device);
		if (parent != null) {
			// ??? not necessary in my understanding of the USB tree structure, the bus
			// has to be the same as the child one's
			final int parentBus = LibUsb.getBusNumber(parent);
			final int parentAddress = LibUsb.getDeviceAddress(parent);
			attach = "Parent Hub " + parentBus + ":" + parentAddress;
		}
		final int port = LibUsb.getPortNumber(device);
		if (port != 0)
			attach += (attach.isEmpty() ? "Attached at port " : ", attached at port ") + port;

		// try to show the full path of port numbers from root for this device
		final ByteBuffer path = ByteBuffer.allocateDirect(8);
        final int result = LibUsb.getPortNumbers(device, path);
		if (result > 0)
			attach += IntStream.range(0, result).map(path::get).mapToObj(Integer::toString)
					.collect(Collectors.joining("/", " (/bus:" + LibUsb.getBusNumber(device) + "/", ")"));

		if (!attach.isEmpty())
			sb.append("\n").append(ind).append(attach);

		final int speed = LibUsb.getDeviceSpeed(device);
		if (speed != LibUsb.SPEED_UNKNOWN)
			sb.append("\n").append(ind).append(DescriptorUtils.getSpeedName(speed)).append(" Speed USB");
		return sb.toString();
	}
162474
def to_string(address, dns_format=False):
		
		if isinstance(address, WIPV4Address) is False:
			raise TypeError('Invalid address type')

		address = [str(int(x)) for x in address.__address]
		if dns_format is False:
			return '.'.join(address)
		address.reverse()
		return ('.'.join(address) + '.in-addr.arpa')
531979
def get_device(self):
        
        addr = self.address
        servers = [server for server in pyrax.cloudservers.list()
                if addr in server.networks.get("private", "")]
        try:
            return servers[0]
        except IndexError:
            return None
106218
def stringify_address(addr, encoding='utf-8'):
    
    if isinstance(addr, bytes_type):
        return addr
    try:
        addr = addr.encode('ascii')
    except UnicodeEncodeError:
        if '@' in addr:
            localpart, domain = addr.split('@', 1)
            addr = b'@'.join([
                localpart.encode(encoding),
                domain.encode('idna'),
            ])
        else:
            addr = addr.encode(encoding)
    return addr.decode('utf-8')
831759
def _get_serial_number(self):
        
        return usb.util.get_string(self._device.usb_dev, 64, self._device.usb_dev.iSerialNumber)
542779
def to_raw_address(addr, section):
        """"""
        return addr - section.header.VirtualAddress + section.header.PointerToRawData
805629
public com.google.protobuf.ByteString
      getPhysicalDeviceDescBytes() {
    java.lang.Object ref = physicalDeviceDesc_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      physicalDeviceDesc_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }
587298
private static String getHostAddress(InetSocketAddress addr) {
    String hostToAppend = "";
    if (addr.isUnresolved()) {
      hostToAppend = addr.getHostName();
    } else {
      hostToAppend = addr.getAddress().getHostAddress();
    }
    return hostToAppend;
  }
1123883
def get_serial_number_string(self):
        
        self._check_device_status()
        str_p = ffi.new("wchar_t[]", 255)
        rv = hidapi.hid_get_serial_number_string(self._device, str_p, 255)
        if rv == -1:
            raise IOError("Failed to read serial number string from HID "
                          "device: {0}".format(self._get_last_error_string()))
        return ffi.string(str_p)
1085043
def get_address(self):
        
        LOGGER.debug("Reading RPS01A sensor's address.",)
        return self.bus.read_byte_data(self.address, self.address_reg)