On Wed, Jun 16, 2004, Harald Welte <[EMAIL PROTECTED]> wrote: > On Tue, Jun 15, 2004 at 03:29:10PM -0700, Johannes Erdfelt wrote: > > > * How should this relate to "udev"? One implementation > > > strategy would make "usbfs2" endpoint files be regular > > > character devices. There are other strategies too, > > > including not coupling them at all. > > > > Perhaps a sockets interface would be more appropriate? > > From my point of view, a socket interface would definitely resemble USB > better. After all, it is a packet oriented bus, and you have different > devices with adresses. > > You also have well-understood semantics of 'binding' to an address, > including a failure to bind if the address is already in use. > > But maybe that's just my strange view on the world as coming from a > strong networking background. > > As already discovered in a recent thread here, USB snooping is very > analogous to what tcpdump [or other pcap based software] dpes. The > socket level could then determine whether you're intereted in > sniffing/sending raw usb packets at the HCD (RAW usb socket) or whether > you're interested in communicating with a specific > device/interface/endpoint.
I certainly agree there are many similarities. My only concern is with some of the other support that doesn't make sense wrt to sockets. Take for example the reset device call. How would that map into a sockets interface? Maybe we can take the meat of the API and implement by means of a sockets API where it makes sense, and make everything else use an ioctl interface (or something else)? JE ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel