This might be in the wrong section but the title of this section is "Network/Device Communication" and I figured a USB device is a device.... I have only seen network posts in this section.
So my question is how could I connect to a USB device (i.e mouse) and send it raw data in c/c++(I am using unix)?
I've never used real unix but I am pretty sure the filesystem, etc, is almost identical to linux, which means devices generally have a device node (a special file type) in the /dev directory. You can try writing and reading from these as if they were normal files, however, the kernel is in charge and knows what is and is not an appropriate action -- eg, if you try and write something to the mouse, that will probably fail.
Originally Posted by CorX
USB devices are controlled with bytecode/text, but it is not in a computer programming language, and the devices do not have the capacity to interpret C or C++. Unless they were made to do that, which would be very unusual; what is it specifically you are trying to do?
Sweet, thanks that makes perfect sense. :)