I would like an application that runs on the Linux platform (distribution of your choice).
Imagine you have two usb ports on your machine that have a male-to-male USB cable connected between them. I would like an application that can send date from one port to the other. How about the following:
Two applications, one that is the "Server", and one that is the "Client". The user starts the "Server" application and it grabs a specific or random USB port and starts "listening" on that port. Then the user opens up another terminal window and runs the client. Somehow the user specifies which USB port to use for outgoing traffic, and the application connects to the "Server" application listening on the other USB port. Then whatever the Client sends in the terminal, which is specified by entering text on the context and pressing the "enter/return" key at the end is sent.
Server - An application that listens on a USB port and echos everything received to the console once it is received. The port is specified as follows:
- The USB port has to be specified on the command line - I do not know the proper format, whether it is simply the number "1" or /dev/usb01 or what not.
Client - An application that makes a connection to the "Server" and listens on the console for input text. It saves all characters typed in on the console into a buffer and trasmits the entire buffer with the newline character to the Server once a newline character is detected.
I hope this application is clear, I only need this so that I can get started with an application to communicate over the USB bus, so basically any application that demonstrates how to communicate over the USB bus with a male-to-male cable is all I really need.