Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Michael Koch  
#1 Posted : Monday, January 6, 2014 12:12:28 AM(UTC)
Michael Koch

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

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline mc-kay  
#2 Posted : Monday, January 6, 2014 11:13:47 AM(UTC)
mc-kay

Medals: Admin

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 ThumpUp

Edited by user Monday, January 6, 2014 7:21:10 PM(UTC)  | Reason: Not specified

Offline Benjamin  
#3 Posted : Monday, January 6, 2014 6:14:58 PM(UTC)
Benjamin

Medals: Admin

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.
Offline Michael Koch  
#4 Posted : Monday, January 6, 2014 7:54:47 PM(UTC)
Michael Koch

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 Mellow).

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).

DE Linux Console Test Screenshot
Offline mc-kay  
#5 Posted : Tuesday, January 7, 2014 11:06:25 AM(UTC)
mc-kay

Medals: Admin

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 ThumpUp
Offline Benjamin  
#6 Posted : Tuesday, January 7, 2014 5:57:02 PM(UTC)
Benjamin

Medals: Admin

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.
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
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.

Powered by YAF.NET | YAF.NET © 2003-2017, Yet Another Forum.NET
This page was generated in 0.079 seconds.