c++ port of lidgren?
I started writing some network services using lidgren because a) I love it and b) its quite portable but I had completely failed to look into scenarios like wanting to connect to those services from a game I wrote in c :/
Now I'm weighing up the complexity of writing a c client library or rewriting my services using basic sockets! :/
Have you considered simply putting a wrapper around it?
Failing that there are alternatives (i can't vouch for these as i haven't tried them myself) such as Photon.
Good luck!
Games/Projects Currently In Development:
Discord RPG Bot | D++ - The Lightweight C++ Discord API Library | TriviaBot Discord Trivia Bot
Your wrapper wouldn't be portable unless you can be assured of running lidgren on the platform you are porting to. You should probably plan this in advance, keeping the wrapper as simple as possible and expecting to have to deal with things like mono as well as the official Microsoft .NET framework.
I think this is possible, it just needs careful planning before you start writing any code. I haven't googled it, but i am betting someone has beaten you to the punch and already implemented such a wrapper with lidgren being such a popular library...
Games/Projects Currently In Development:
Discord RPG Bot | D++ - The Lightweight C++ Discord API Library | TriviaBot Discord Trivia Bot
An alternative is to use a C level library, such as RakNet, instead of Lidgren, and write a C# -> C wrapper to import RakNet into your C# code. This would probably be more straightforward, and more palatable to developers used to doing "only C" and not including large support libraries.
An alternative is to use a C level library, such as RakNet, instead of Lidgren, and write a C# -> C wrapper to import RakNet into your C# code.
Happily, RakNet comes with a compile-it-yourself C# wrapper these days.
Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]