Delta Engine
»
General
»
Discussions
»
DE Networking/Linux vServer
Joined: 12/27/2013(UTC) Posts: 41 Location: Regensburg
Thanks: 3 times Was thanked: 1 time(s) in 1 post(s)
|
First of all, I believe a separate "Networking" section in this Forum's Support area could come in handy...
Oh, did I say networking? Well, here is a ('conceptual') question:
Let say, I've got a Linux vServer, where I would want to run a basic multiplayer server app (client connect, get player positions and distribute, etc). Of course, I would want to use what DE already provides there. So, I could recompile DE's networking assembly DeltaEngine.Networking.dll with Mono, for being used by the server app later (not needing the rest of DE there, probably).
Now, I would develop server (ref to DE.networking only) and client (full ref to DE) comfortable, both on windows and in VS. Then shuffle the server part (after piping through Mono's gmcs) over to the vServer (where Mono runtime is installed also, obviously).
Is this - in principle - a way to go? Up to now, I fiddled separately with gcc and vim on Linux console, while doing the client with e.g. VS. This was painfull, as basically two different development environments had to be used (yeah, could use VM and Ubuntu locally for the linux part - but is still a separate environment...).
Thanks for your comments
|
|
|
|
Medals:  Joined: 8/24/2011(UTC) Posts: 138 Location: Hannover
Thanks: 1 times Was thanked: 12 time(s) in 7 post(s)
|
Well, the Mono runtime is bytecode compatible with the .NET Framework which mean you don't have to recompile stuff, just copy the binaries to you Linux box. The problem is the Base Class Library which is not 100% implemented by the Mono team. I never tried this, but the Networking implementation is just using raw sockets which should be no problem using Linux/Mono. Just try it and let us know  Edited by user Monday, January 6, 2014 7:21:10 PM(UTC)
| Reason: Not specified |
|
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
Yes, networking works out of the box on Linux and Mac with .NET/Mono. If you need help with anything, let us know. The only reason we have not provided Linux/Mac binaries is because of the graphic/multimedia/input framework implementations and testing them (e.g. OpenTK works, but there is always some issues to be aware of, testing, providing a installer, using the IDEs available, etc.). If Linux is an important platform, let us know and we can prioritize it.
|
|
|
|
Joined: 12/27/2013(UTC) Posts: 41 Location: Regensburg
Thanks: 3 times Was thanked: 1 time(s) in 1 post(s)
|
Again, thanks for your comments. Haha, yeah, I don't need to recompile (duh, still need to fully get the .net concept into my head  ). So, made a client and a server app with VS, then copied over the server to Debian console-only on a VM, adding the referenced assemblies. I am using TcpServer and and TcpSocket classes. Worked instantly. Now I can actually do what I was aiming for: Create console server for Linux with VS, combined with Client in same project solution. Test on windows first, then move to local testing on VM, then move to remote machine - without recompiling and all the gcc and platform hassle. This is really wonderful thing (and no need to prioritize the gfx on linux - at least, as far as I am concerned). 
|
|
|
|
Medals:  Joined: 8/24/2011(UTC) Posts: 138 Location: Hannover
Thanks: 1 times Was thanked: 12 time(s) in 7 post(s)
|
Welcome to the wonderful world of managed code |
|
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
Testing image upload .. Benjamin attached the following image(s):  DeltaEngineIcon128x128.png (4kb) downloaded 1 time(s).You cannot view/download attachments. Try to login or register.
|
|
|
|
Delta Engine
»
General
»
Discussions
»
DE Networking/Linux vServer
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.