Author Topic: Integrated Soldat HTTP Admin  (Read 5975 times)

0 Members and 6 Guests are viewing this topic.

Offline PopeJohnPaul_II

  • Major(1)
  • Posts: 10
  • λ § Ψ
Integrated Soldat HTTP Admin
« on: October 04, 2007, 10:51:52 pm »
If you have used VNC, you may have noticed the feature that allows you to connect via a browser and Java applet. The same concept could work for administrating a Soldat server.

This can be implemented up to the point of integration by third party developers. Theoretically you could simply use an HTTP server to serve these, but due to xss restrictions the applet must be served from the local machine or the same domain/ip to create the socket connection.

Optimally the front-end would be HTML and Javascript. A hidden Flex plugin manages the socket connection to the server. The Flex-Ajax bridge allows Flex to trigger Javascript events. Attached is a diagram of the steps.

Why Flex and HTML? Flex is free and virtually everyone has the required Flash plugin. Creating an interface entirely in Flex is an option, but most of us don't have the full-fledged Flex Builder (sold commercially.) HTML can easily be utilized with a Javascript library, such as jQuery, to create user-friendly interfaces.

Feel free to comment, add to or steal from this idea.
« Last Edit: October 04, 2007, 10:54:28 pm by PopeJohnPaul_II »
Defiance is our only hope. Suicide != cowardice.

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Integrated Soldat HTTP Admin
« Reply #1 on: October 04, 2007, 11:36:16 pm »
Hmm... I think I didn't understand. What would be the advantage of that?
urraka

Offline PopeJohnPaul_II

  • Major(1)
  • Posts: 10
  • λ § Ψ
Re: Integrated Soldat HTTP Admin
« Reply #2 on: October 04, 2007, 11:53:34 pm »
The advantage being: You can administrate the server from anywhere without downloading a client application. Just open up the browser, go to http://domain:port/ and login using your admin password.
« Last Edit: October 04, 2007, 11:57:47 pm by PopeJohnPaul_II »
Defiance is our only hope. Suicide != cowardice.

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Integrated Soldat HTTP Admin
« Reply #3 on: October 05, 2007, 12:06:25 pm »
Yeah, like a router, except the thing should be interactive and dynamic.

Isn't it easier to just write a java applet and upload it somewhere?

Offline PopeJohnPaul_II

  • Major(1)
  • Posts: 10
  • λ § Ψ
Re: Integrated Soldat HTTP Admin
« Reply #4 on: October 05, 2007, 12:23:20 pm »
Isn't it easier to just write a java applet and upload it somewhere?

Can Java applets make socket connections to hosts other than the host from which they were served?
Defiance is our only hope. Suicide != cowardice.

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Integrated Soldat HTTP Admin
« Reply #5 on: October 05, 2007, 12:25:30 pm »
I guess it would be easier, but you would be downloading an admin clien then, and you also need to have the java plugin i think. Also, with the java applet the connection would be done by the client, not by the server. The way he suggests would be all html, javascript, css... no need to download anything but the webpage. (and you would be able to admin from a school with blocked ports for example :P)
urraka

Offline KeYDoN

  • Major
  • *
  • Posts: 60
Re: Integrated Soldat HTTP Admin
« Reply #6 on: October 05, 2007, 01:23:50 pm »
great idea, but i guess it wont be integrated ;)

couldn you do the same just with a extern http server? would be great :P

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Integrated Soldat HTTP Admin
« Reply #7 on: October 05, 2007, 04:56:19 pm »
great idea, but i guess it wont be integrated ;)

couldn you do the same just with a extern http server? would be great :P
yes, but things like that tend to jack up the load average on the webservers since it requires a large number of long-running processes. 

The only way to do it properly with AJAX or something is to 1) do it entirely asynchronously or 2) have the local client contact a non-http server for communication with the Soldat server. 

Offline bja888

  • Flagrunner
  • ****
  • Posts: 745
  • Working
    • Bja888.com
Re: Integrated Soldat HTTP Admin
« Reply #8 on: October 09, 2007, 12:19:49 am »
great idea, but i guess it wont be integrated ;)

couldn you do the same just with a extern http server? would be great :P
yes, but things like that tend to jack up the load average on the webservers since it requires a large number of long-running processes. 

The only way to do it properly with AJAX or something is to 1) do it entirely asynchronously or 2) have the local client contact a non-http server for communication with the Soldat server. 

2nd!

Its gonna have to be really light. Soldat clients and servers where intended to run on slower computers AJAX, swf (flex) and standards complaint html will take a lot of bandwidth.

I suggest text only or extremely light xhtml, CSS and javascript. (Not IE compliant, too much BS code.)

Edit: On the other hand that shit is really fun to make. Regardless of if it is practical or not.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Integrated Soldat HTTP Admin
« Reply #9 on: October 09, 2007, 08:15:13 am »
while I agree with most of what you said bja, I have to point out that more bandwidth doesn't immediately mean a program won't run on slower computers.


I don't know much about Flex.  Does using Flex automatically mean that Flash is going to be used on the client (in the browser)?

Offline PopeJohnPaul_II

  • Major(1)
  • Posts: 10
  • λ § Ψ
Re: Integrated Soldat HTTP Admin
« Reply #10 on: October 09, 2007, 09:34:20 am »
I don't know much about Flex.  Does using Flex automatically mean that Flash is going to be used on the client (in the browser)?

Yes, it's the only method that I'm aware of that will allow a connection from a web browser without polling (which takes too much bandwidth.)
Defiance is our only hope. Suicide != cowardice.

Offline bja888

  • Flagrunner
  • ****
  • Posts: 745
  • Working
    • Bja888.com
Re: Integrated Soldat HTTP Admin
« Reply #11 on: October 09, 2007, 11:32:36 am »
I don't know much about Flex.  Does using Flex automatically mean that Flash is going to be used on the client (in the browser)?

Yes, it's the only method that I'm aware of that will allow a connection from a web browser without polling (which takes too much bandwidth.)

The "Push" method (I think thats what it is called) requires a Cold Fusion Server. I don't think we need to include that with a soldat server.

Yep, its push

Also, flex might be easy and fast to develop using all their wizards but there is a ton of overhead.
« Last Edit: October 09, 2007, 11:35:23 am by bja888 »

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Integrated Soldat HTTP Admin
« Reply #12 on: October 09, 2007, 02:38:13 pm »
Eh, I can't imagine a flex-based tool being the best idea then, as flash currently is the cause of most browser performance issues.
... but then again, that is mainly for stupid animated stuff and inefficient video players.

I'd be interested to see this done, and see how it performs on older hardware and what kind of RAM footprint it has

Offline bja888

  • Flagrunner
  • ****
  • Posts: 745
  • Working
    • Bja888.com
Re: Integrated Soldat HTTP Admin
« Reply #13 on: October 09, 2007, 02:55:48 pm »
Sliverlight might be a more efficient alternative. But I haven't gotten a chance to mess with it yet. I hear development is similar to flex (xml based). Anyone mess with it yet?

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Integrated Soldat HTTP Admin
« Reply #14 on: October 09, 2007, 03:25:48 pm »
nothing like watching MS try to get into even more markets....  I wonder what will be next, sex toys?

Offline bja888

  • Flagrunner
  • ****
  • Posts: 745
  • Working
    • Bja888.com
Re: Integrated Soldat HTTP Admin
« Reply #15 on: October 09, 2007, 04:08:43 pm »
nothing like watching MS try to get into even more markets....  I wonder what will be next, sex toys?

Microsoft Condoms.

lol, Oxymoron

Offline PopeJohnPaul_II

  • Major(1)
  • Posts: 10
  • λ § Ψ
Re: Integrated Soldat HTTP Admin
« Reply #16 on: October 09, 2007, 08:12:40 pm »
Silverlight was another consideration of mine. The market share isn't very high, but it would be fun to toy with. Unfortunately, Linux support through the Moonlight API is largely incomplete.

Maybe I misunderstood you bja888, but Flex doesn't require a ColdFusion server for sockets. I chose Flex because it is versatile and will be released open source this quarter. Overhead should be minimal since Flash is just the medium for our socket connection, not the interface.
Defiance is our only hope. Suicide != cowardice.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Integrated Soldat HTTP Admin
« Reply #17 on: October 09, 2007, 08:54:11 pm »
Aha, I was under the impression that Flash would be the interface as well.

Given the choice between Silverlight and Flex, I'd choose Flex even if it was flash on the client/interface.

So the client/interface in a Flex setup would be AJAX in nature?

Offline bja888

  • Flagrunner
  • ****
  • Posts: 745
  • Working
    • Bja888.com
Re: Integrated Soldat HTTP Admin
« Reply #18 on: October 09, 2007, 09:47:11 pm »
Maybe I misunderstood you bja888, but Flex doesn't require a ColdFusion server for sockets.

I have been out of the flex loop far a while but back when I was doing inital research (like 8 months ago) there was a lot of talk about "Data Push" in relation to flex data services. On this page "Data Push" Is defined...
Quote
Data push
Flex Data Services offers data-push capability, enabling data to automatically be pushed to the client application without polling. This highly scalable capability can push data to thousands of concurrent users, providing up-to-the-second views of critical data, such as stock trader applications, live resource monitoring, shop floor automation, and more.
This is what I thought you where going to use instead of polling. The Socks connection looks solid though. IDk why they are even bothering pushing "Push" is they have solid socks. :)

I chose Flex because it is versatile and will be released open source this quarter.

Yep, it will lead to better linux integration. (hopeful a x64 edition) But for now flash is still larger then plain text and slow.

Overhead should be minimal since Flash is just the medium for our socket connection, not the interface.

Why?? If you going to slow down the browser by looking up and initializing flash then you might as well use it to have a nicer interface.

So the client/interface in a Flex setup would be AJAX in nature?
I think they had a code name for a project like that. It was still under development last I heard but the example I looked at had a ton of overhead as well. Like 3, 3KB javascript files or some sh**.

Offline PopeJohnPaul_II

  • Major(1)
  • Posts: 10
  • λ § Ψ
Re: Integrated Soldat HTTP Admin
« Reply #19 on: October 09, 2007, 10:28:13 pm »
So the client/interface in a Flex setup would be AJAX in nature?

There won't necessarily be any asynchronous requests or XML since Flex will have a direct binary connection with the server. Flex will trigger Javascript events when players join, leave, chat and so on. Javascript will update the HTML interface. AJAX-like, you might say.

If you going to slow down the browser by looking up and initializing flash then you might as well use it to have a nicer interface.

Flex interfaces are bug-ridden, especially the text input. HTML and Javascript better fit into the browser. Besides, I believe everyone who's posted so far is knowledgeable in Javascript.

Flex-Ajax Bridge provides Flex/Javascript communication and is bundled with Flex.
Defiance is our only hope. Suicide != cowardice.