Back to project page USBIPServerForAndroid.
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.
package org.cgutman.usbip.server; //ww w. ja va 2 s .co m import java.net.Socket; import java.util.List; import org.cgutman.usbip.server.protocol.dev.UsbIpSubmitUrb; import org.cgutman.usbip.server.protocol.dev.UsbIpUnlinkUrb; public interface UsbRequestHandler { public List<UsbDeviceInfo> getDevices(); public UsbDeviceInfo getDeviceByBusId(String busId); public boolean attachToDevice(Socket s, String busId); public void detachFromDevice(Socket s, String busId); public void submitUrbRequest(Socket s, UsbIpSubmitUrb msg); public void abortUrbRequest(Socket s, UsbIpUnlinkUrb msg); public void cleanupSocket(Socket s); }