Android Open Source - USBIPServerForAndroid Proto Defs






From Project

Back to project page USBIPServerForAndroid.

License

The source code is released under:

GNU General Public License

If you think the Android project USBIPServerForAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.cgutman.usbip.server.protocol;
//from   www .  ja  v a  2s  .c o  m
public class ProtoDefs {
  /* public static final short USBIP_VERSION = 0x0111; */
  
  public static final short OP_REQUEST = (short) (0x80 << 8);
  public static final short OP_REPLY = (0x00 << 8);
  
  public static final byte ST_OK = 0x00;
  public static final byte ST_NA = 0x01;
  
  public static final byte OP_IMPORT = 0x03;
  public static final short OP_REQ_IMPORT = (OP_REQUEST | OP_IMPORT);
  public static final short OP_REP_IMPORT = (OP_REPLY | OP_IMPORT);
  
  public static final byte OP_DEVLIST = 0x05;
  public static final short OP_REQ_DEVLIST = (OP_REQUEST | OP_DEVLIST);
  public static final short OP_REP_DEVLIST = (OP_REPLY | OP_DEVLIST);
  
  public static final byte OP_EXPORT = 0x06;
  public static final short OP_REQ_EXPORT = (OP_REQUEST | OP_EXPORT);
  public static final short OP_REP_EXPORT = (OP_REPLY | OP_EXPORT);
  
  public static final byte OP_UNEXPORT = 0x07;
  public static final short OP_REQ_UNEXPORT = (OP_REQUEST | OP_UNEXPORT);
  public static final short OP_REP_UNEXPORT = (OP_REPLY | OP_UNEXPORT);
}




Java Source Code List

org.cgutman.usbip.config.UsbIpConfig.java
org.cgutman.usbip.errno.Errno.java
org.cgutman.usbip.server.UsbDeviceInfo.java
org.cgutman.usbip.server.UsbIpServer.java
org.cgutman.usbip.server.UsbRequestHandler.java
org.cgutman.usbip.server.protocol.ProtoDefs.java
org.cgutman.usbip.server.protocol.UsbIpDevice.java
org.cgutman.usbip.server.protocol.UsbIpInterface.java
org.cgutman.usbip.server.protocol.cli.CommonPacket.java
org.cgutman.usbip.server.protocol.cli.DevListReply.java
org.cgutman.usbip.server.protocol.cli.DevListRequest.java
org.cgutman.usbip.server.protocol.cli.ImportDeviceReply.java
org.cgutman.usbip.server.protocol.cli.ImportDeviceRequest.java
org.cgutman.usbip.server.protocol.dev.UsbIpDevicePacket.java
org.cgutman.usbip.server.protocol.dev.UsbIpSubmitUrbReply.java
org.cgutman.usbip.server.protocol.dev.UsbIpSubmitUrb.java
org.cgutman.usbip.server.protocol.dev.UsbIpUnlinkUrbReply.java
org.cgutman.usbip.server.protocol.dev.UsbIpUnlinkUrb.java
org.cgutman.usbip.service.UsbIpService.java
org.cgutman.usbip.usb.UsbControlHelper.java
org.cgutman.usbip.usb.UsbDeviceDescriptor.java
org.cgutman.usbip.usb.XferUtils.java
org.cgutman.usbip.utils.StreamUtils.java