?
Solved

Best approach?

Posted on 2004-09-20
9
Medium Priority
?
161 Views
Last Modified: 2010-04-05
Hi Guys,
Im developing a pretty simple game but would like to have online "tournament" functionality. So the application would just be the interface but "SOMETHING" on my web server will actually make all the decisions as far as calculating variables.

I know I could make client/server relationchip and have the server listen on a specific port and all that. However, I would rather not have to pay for a dedicated server. Is there another way of

1. sending query
2. retreive decision
3. show decision to user
loop

This needs to be pretty secure so the top scores are not compromised.
Thank you!
0
Comment
Question by:maxb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 12110075
if you can execute some server-side scripts on your server - PHP, ASP, JSP, you can use a browser from your client and work with GET and POST variables to send/receive data... Thus you won't need dedicated server. This is you don't want server side for your game as application listening on specified port or something ...
0
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 12110653
SOAP...
If you have Delphi 7 or 8, then consider developing the server as a Delphi SOAP server, combined with IIS. Works fine with your basic webserver, as long as it can handle the stress of all the connections to it.
However, with SOAP you have to do things "stateless" so you probably need some simple database as back-end to store the information. And you have to be aware that multiple users can do things at the same time.

To do it easier, use PHP/ASP/JSP for the server. Easier, but with the same stateless issues.

If you do want some state information stored, there is another solution. Create the main part of your program as e.g. a System service and use SOAP to communicate with this service. This would keep communications just a local, interprocess system. This way, the game just keeps running even if users don't do anything.
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 12110847
SOAP is available in Delphi 6+. D6 was the first IDE providing SOAP applications...
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:maxb
ID: 12114948
I think im leaning towards the post approach with perl on the server. If i use SSL, the connection should be secure and harder to hack, correct? For 200pts, simple post code example and retreiving the response?

Thank you guys.
0
 
LVL 13

Expert Comment

by:BlackTigerX
ID: 12116910
0
 

Author Comment

by:maxb
ID: 12117117
BlackTigerX,
I'm looking for the Delphi side of the solution. The Perl I can handle. I just need to know how to do a post in delphi and then read the reply.

For example I want to submit variable q=delphi to get this page:
http://www.google.com/search?hl=en&ie=UTF-8&q=delphi

I want delphi to read the returned HTML.

P.S. I don't want to simply pass the variable in the URL, it should be an actual POST (as if a form was filled out).
0
 

Author Comment

by:maxb
ID: 12124473
Thanks Ivanov,
How do I know what the response of the post is though?
0
 
LVL 12

Accepted Solution

by:
Ivanov_G earned 200 total points
ID: 12128846
the response:

Memo1.Lines.Text := idHTTP.Post('http://www.domain.com/form.php', Params, aStream);

the output will be the HTML code of the page.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question