Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

API Feature Request: C style interface for steamnetworkingcustomsignaling C++ abstract class #169

Closed
Manquia opened this issue Mar 4, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@Manquia
Copy link

Manquia commented Mar 4, 2021

Hello, I am working on bindings for JAI to the GameNetworkingSockets. In pursuit of that goal, I found that the ISteamNetworkingConnectionSignaling interface is not accessible/hard/(impossible?) to handle since JAI (like C) doesn't support abstract classes.

Can you please provide a C-style interface for the custom signaling API?

Thanks,
Micah Rust

@zpostfacto zpostfacto self-assigned this Mar 5, 2021
@zpostfacto zpostfacto added the enhancement New feature or request label Mar 5, 2021
@zpostfacto
Copy link
Contributor

I could make a plain C function that creates an implementation of ISteamNetworkingConnectionSignaling, given a set of function pointers and a context object. Shouldn't be too hard.

@Manquia
Copy link
Author

Manquia commented Mar 9, 2021

Yep. That is basically what I was hoping for, Thanks.

@rlabrecque
Copy link

Would appreciate and use this in Steamworks.NET as well too 👍

@zpostfacto
Copy link
Contributor

@rlabrecque Working on this. Out of curiosity - some of the matchmaking APIs have this same design, right? How are they currently handled?

zpostfacto added a commit that referenced this issue Apr 12, 2021
@zpostfacto
Copy link
Contributor

@Manquia @rlabrecque Let me know what you think.

@Manquia
Copy link
Author

Manquia commented May 14, 2021

Sorry, it's taken so long to reply. I've been focused on another project and been unable to get the time to properly test this out. It looks good, but I've not tested it yet. I am hoping sometime this weekend or next that I'll have time to update my bindings to test the changes you've made.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants