Skip to content

Simulating two devices #1

@melg8

Description

@melg8

Hi, i really like your project! But can't figure out by myself, is how to simulate two different devices (like in example), but it could be like simulating keyboard + mouse from single ip/port? I've been able to do this in similar usbip project in python using 2 different buses. So client can connect first to 127.0.0.1 3240 1-1 and than to 127.0.0.1 3240 1-2.
As i saw now - bus number is hardcoded in handle op, second problem - when i just to duplicate 2 twitching mouse examples - i got exception about single socket usage "Result::unwrap() on an Err value: Os { code: 10048, kind: AddrInUse".
I'm really new to Rust, and usbip/hid area, so any help or examples would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions