Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-26-2010, 03:12 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Communication with a webserver... Stefan??

Is it possible for a web server to communicate with a server? Specifically what I have in mind is a kind of staff control panel for the server that would let staff edit the items of players without having to log on client. Is something like this possible (it would need to have 2-way communication that isn't based on polling the webserver every few seconds).
__________________
Reply With Quote
  #2  
Old 03-26-2010, 03:32 AM
Stephen Stephen is offline
Boom!
Stephen's Avatar
Join Date: May 2004
Location: San Francisco
Posts: 10,410
Stephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud of
Quote:
Originally Posted by cbk1994 View Post
Is it possible for a web server to communicate with a server? Specifically what I have in mind is a kind of staff control panel for the server that would let staff edit the items of players without having to log on client. Is something like this possible (it would need to have 2-way communication that isn't based on polling the webserver every few seconds).
Sockets broh.
__________________
Reply With Quote
  #3  
Old 03-26-2010, 04:41 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
You can use TSockets to bind a socket on the server and accept incoming connections but you cannot do this without Stefan first allowing the binding to take place. Perhaps your suggested application of it would not be entirely sensible though, it just seems like adding another attack plane to the server is not a good idea when RC already works well enough (what if someone gets access to your supposed control panel?) so you might need to come up with a more compelling use for it.
__________________
Skyld
Reply With Quote
  #4  
Old 03-26-2010, 04:43 AM
Imperialistic Imperialistic is offline
graal player lord
Imperialistic's Avatar
Join Date: Apr 2007
Location: Florida
Posts: 1,094
Imperialistic is a jewel in the roughImperialistic is a jewel in the rough
I do believe Zodiac is using TSockets for their uploading system.
__________________
" It's been swell, but the swelling's gone down. "
Reply With Quote
  #5  
Old 03-26-2010, 04:43 AM
CharlieM CharlieM is offline
Hired/Fired
Join Date: Sep 2007
Location: Places you dont want to go babe.
Posts: 1,834
CharlieM will become famous soon enough
Send a message via AIM to CharlieM Send a message via MSN to CharlieM
Could make the site, but make it some randomly named site and only allow trusted staff like Manager Dev admin to know it..
__________________


"You can discover what your enemy fears most by observing the means he uses to frighten you."

Eric Hoffer

turned that one on you didn't I.
Reply With Quote
  #6  
Old 03-26-2010, 04:53 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Imperialistic View Post
I do believe Zodiac is using TSockets for their uploading system.
Not in the sense I'm talking about. They're using a request-only polling system (the NPC-server asks for the list of uploads) rather than one where the webserver can actually speak to the NPC-server.

Quote:
Originally Posted by CharlieM View Post
Could make the site, but make it some randomly named site and only allow trusted staff like Manager Dev admin to know it..
Security through obscurity is no security at all.
__________________
Reply With Quote
  #7  
Old 03-26-2010, 04:57 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Imperialistic View Post
I do believe Zodiac is using TSockets for their uploading system.
Nope.
__________________
Quote:
Reply With Quote
  #8  
Old 03-26-2010, 05:16 AM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
I did something like this, it was dumb in the sense that the PHP server never sent out the request, except Graal requested the state from the PHP server every few seconds instead and parsed it, since I can't get TSocket enabled on Testbed without going through too much trouble and, yeah.
Reply With Quote
  #9  
Old 03-29-2010, 04:57 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
TSockets do the trick
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:45 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.