AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Communication between servers on one machine (https://forums.alliedmods.net/showthread.php?t=207333)

SpeeDeeR 02-01-2013 11:41

Communication between servers on one machine
 
Is there any known way of communication between servers on one machine without pointing out their ports etc - just detecting if several servers are hosted from the same machine without giving any other information.

Sylwester 02-01-2013 11:50

Re: Communication between servers on one machine
 
You can make a module or metamod plugin that uses IPC. You can use mysql. You can use files. Depends on what you want to use it for.

SpeeDeeR 02-01-2013 12:18

Re: Communication between servers on one machine
 
I want a method to determane how many servers are hosted from this machine. A plugin-related method would be the best.

Sylwester 02-01-2013 12:55

Re: Communication between servers on one machine
 
The best method for that would be to check running processes using custom module.
With default amxx you could do it using mysql or check ports using sockets, but those methods are not very reliable.

Why do you need this anyway?

fysiks 02-01-2013 23:40

Re: Communication between servers on one machine
 
Quote:

Originally Posted by SpeeDeeR (Post 1884803)
I want a method to determane how many servers are hosted from this machine. A plugin-related method would be the best.

If it's something you are supposed to know then you would already know this via other methods. If you don't already know this info then there is probably a reason for this. If you are having issues with a server that you pay for on a VM then you should ask the host.

Otherwise, you need to explain what you are actually trying to do because there is likely a better solution.

xPaw 02-02-2013 03:35

Re: Communication between servers on one machine
 
Quote:

Originally Posted by SpeeDeeR (Post 1884803)
I want a method to determane how many servers are hosted from this machine. A plugin-related method would be the best.

Why not just query the server?
https://developer.valvesoftware.com/wiki/Server_queries

Sylwester 02-02-2013 03:48

Re: Communication between servers on one machine
 
He said he doesn't know the ports. And I already said you can use sockets, but it's not very good (how many ports are you going to check?).


All times are GMT -4. The time now is 20:32.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.