You can read/write to a usb device by simply using open/read/write system commands.
Try using a uv_fs_t with uv_fs_open/uv_fs_read/uv_fs_write functions. These functions will simply communicate bytes of data which is what I think you're looking for. MY On Monday, March 10, 2014 7:36:58 PM UTC-6, Fish Zheng wrote: > > Hi, Libuver, > I want to read/write one serial port device(like /dev/ttyUSB0) on > Linux. > What's the handle type I can use? > Or How can I setup the I/O context? > > Thx! > > > -- > > _ __ _ _ > ___| |__ ___ _ __ __ _ / _(_)___| |__ > |_ / '_ \ / _ \ '_ \ / _` | | |_| / __| '_ \ > / /| | | | __/ | | | (_| | | _| \__ \ | | | > /___|_| |_|\___|_| |_|\__, | |_| |_|___/_| |_| > |___/ > > -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
