Skip to content

How to connect to multiple NSPs (Linux) #73

Description

@zeeMonkeez

I have a Linux machine with two network cards dedicated to one NSP each. eth0 has its IP set to 192.168.137.1, and I can connect to an NSP using the example code in testcbsdk.cpp. eth2 is set to 192.168.137.17 and connected to another NSP. However, I don't seem to be able to connect with cbSDK.
Here is what I've tried:

  • cbSdkOpen(inst, conType) with inst=1. This seems to connect to the NSP on eth0.
  • cbSdkOpen(0, conType); cbSdkOpen(1, conType); The second call returns -8.
  • Give specific IP address:
    cbSdkOpen(0, conType);
    cbSdkConnection con;
    con.szInIP = "192.168.137.17";
    cbSdkOpen(1, conType, con);

The second call returns -30.

If this is documented somewhere, I missed it..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions