-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P2P API on C# side #12
Comments
Hi, sure. Can you point me to the exact API that you would like to wrap? |
P2P implementation is in this source file: test_p2p.cpp As far as I have looked, one of the main thing that we need to add is this "SetGlobalConfigValue" API, which is used like this:
Other than this, we need these API's:
These are the ones that I can see right away, if you want me to look more detailed I can dive deeper. |
@fletcherdvalve Fletch, in the flat interface functionality for Also, this signature |
I am probably going to rework this interface soon. I'll correct the calling conventions at that time. |
I just checked in an entirely new interface, ISteamNetworkingMessages. It is the same as the Steam version, and is intended to make it easier to port UDP code. Now would be a good time to collect a list of things that I need to fix with the flat interface or other stuff that makes the binding awkward. After I get the flat interface in a good state with all this stuff, I'll probably make a new release. |
Pinging this again, because I'd like to make sure I am doing what is needed to support this. Are these the only two issues?
|
I'm slammed with other projects and IRL stuff at the moment, so can't check this out yet, unfortunately. |
@fletcherdvalve I've looked into this again. The first issue is that in accordance to @unalkalkan request above, As for the second issue, yes, parameters like |
@nxrighthere On the first item, my library requires that the application code provide a class that implements a certain interface. It's really just a way for the app code to specify a set of callbacks and shared context in a bundle. This is really easy and convenient in C++, of course. I can make a slightly different flat interface, and some glue to do it with plain C-style callbacks. I'll hit you up when I have something and get your opinion. Thanks for creating and maintaining this |
@fletcherdvalve It's an investment for bonus points for a potential job at Valve. 😸
No problem! I'm not familiar with recent P2P stuff that you implemented, but it seems interesting! |
Just passing through, but for what it's worth-
If you were able to implement them it would make P2P socket connections via steam relay easier.
|
Any updates on this? I'm looking to do P2P with this. Does this C# library support P2P, and if not, what needs to be done in order to get it functioning the way GameNetworkingSockets does? Thanks. |
I need to find time to update the wrapper. I'm slammed with IRL stuff and my other projects. |
@nxrighthere this repo uses Valve's relay but does not require Steam, correct? in other words, this can be used on non-pc devices? |
Theoretically, yes. |
Hi there. Sorry for resurrecting this old issue, but are there any updates related to the P2P functions being accessible in the C# library? What would need to be done in order to support this functionality? Can you point me in the right direction to add support for this? Have other posters on here added it on their projects and willing to share the updated C# wrapper? We are looking into using this for our networking for our game and having the P2P functionality would be great. |
Hello, first of all thanks for your efforts so far. It helped so much along the way.
I was wondering if you are planning to implement the P2P callbacks and function calls on the C# side. Especially on Signalling implementation.
The text was updated successfully, but these errors were encountered: