Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Communication with a webserver... Stefan?? (https://forums.graalonline.com/forums/showthread.php?t=134258514)

cbk1994 03-26-2010 03:12 AM

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

Stephen 03-26-2010 03:32 AM

Quote:

Originally Posted by cbk1994 (Post 1565011)
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.

Skyld 03-26-2010 04:41 AM

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.

Imperialistic 03-26-2010 04:43 AM

I do believe Zodiac is using TSockets for their uploading system.

CharlieM 03-26-2010 04:43 AM

Could make the site, but make it some randomly named site and only allow trusted staff like Manager Dev admin to know it..

cbk1994 03-26-2010 04:53 AM

Quote:

Originally Posted by Imperialistic (Post 1565026)
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 (Post 1565027)
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.

fowlplay4 03-26-2010 04:57 AM

Quote:

Originally Posted by Imperialistic (Post 1565026)
I do believe Zodiac is using TSockets for their uploading system.

Nope.

12171217 03-26-2010 05:16 AM

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.

Admins 03-29-2010 04:57 PM

TSockets do the trick


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.