Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 19:25

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



communicate between different appdomain in different processes

Discussion on communicate between different appdomain in different processes within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2014
Posts: 69
Received Thanks: 13
communicate between different appdomain in different processes

i need to create communication between 3 exe through a dll were all of them could access/change it's variables (lets say authserver, gamesever and cp)
so as of being static isn't enough as static is per appdomain it's getting kinda tricky for me as
i don't really want to support remoting or wcf
that's why i was hopping for a way around that and preferable not to be writting to database or even flat/xml file
OverKillasdwqe is offline  
Old 07/14/2014, 16:53   #2
 
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
Can't you just use something named pipes, shared memory, or sockets maybe?
Best Coder 2014 is offline  
Old 07/14/2014, 17:55   #3
 
elite*gold: 0
Join Date: Jun 2014
Posts: 69
Received Thanks: 13
Quote:
Originally Posted by Best Coder 2014 View Post
Can't you just use something named pipes, shared memory, or sockets maybe?
pipes and sockets would be messy with maybe 200 variable (yeah imagine switching on 200 variable with text i piped between clients and server to get a value then cast it back to new objects) but yeah it would work but i just dun like it

and duno what you mean by shared memory, if i've to guess i would say like memory mapped file ? well i guess instead of that in that case a text file would do with 2 threads checking, one write from gui to it and one read on gameserver

but i was hopping for a better way around, because at every cases i would have to duplicate all my variables
OverKillasdwqe is offline  
Old 07/14/2014, 18:04   #4
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
If you're doing this just to create an account server, game server, and control panel, then use sockets or pipes (if you don't care about running them independently on different hosts). There's absolutely no reason to do weird tricks to communicate between the three. If you're really concerns about switching between 200 different packet types (though you really shouldn't have that many), use a tree data structure where the id is the key and the function pointer is the value.
Spirited is offline  
Old 07/14/2014, 18:04   #5
 
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
Quote:
Originally Posted by OverKillasdwqe View Post
pipes and sockets would be messy with maybe 200 variable (yeah imagine switching on 200 variable with text i piped between clients and server to get a value then cast it back to new objects) but yeah it would work but i just dun like it

and duno what you mean by shared memory, if i've to guess i would say like memory mapped file ? well i guess instead of that in that case a text file would do with 2 threads checking, one write from gui to it and one read on gameserver

but i was hopping for a better way around, because at every cases i would have to duplicate all my variables
It sounds to me like this might not be a very good idea. Why would you want something like that? I mean something where one process can change the variables inside another process? Sounds really messy, are you sure there's not a better way?
Best Coder 2014 is offline  
Old 07/14/2014, 18:12   #6
 
elite*gold: 0
Join Date: Jun 2014
Posts: 69
Received Thanks: 13
well a better way i think would be including both at the same project where it's console generating the gui or the gui generating the console, then it would be 2 threads but in the same appdomain and there would be no problem but in that case i would either stick the gui to gameserver or to the auth server

or even a better design would be turn game and auth servers to be a gui based

so why do i need this ? i need to be able to set variables at game server from a separate control panel, why ? im doing my best to have a perfect up time with everything dynamic that i could literally change anything (like within tq binaries) but from a control panel

but the thing is, im not searching for a solution as much as im seeking information to learn
OverKillasdwqe is offline  
Old 07/14/2014, 20:33   #7


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
I would suggest opening another port for a webserver and doing it via something like PHP then.
KraHen is offline  
Old 07/15/2014, 03:51   #8
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 706
Quote:
Originally Posted by KraHen View Post
I would suggest opening another port for a webserver and doing it via something like PHP then.
Websockets would be his best call then.
turk55 is offline  
Old 07/15/2014, 05:25   #9
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
I would strongly advise against a GUI for your server applications. I've learnt my lesson with that. Always support command line automation before GUI driven controls. Also, it really isn't best to have a GUI for a performance sensitive application. Hopefully if you decide to implement a GUI that you thread it correctly. The default threading apartment model for Windows Applications (non-console) can negatively affect your server.
Spirited is offline  
Old 07/15/2014, 09:31   #10


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
Quote:
Originally Posted by turk55 View Post
Websockets would be his best call then.
I don`t see the need of the added websocket protocol, but yeah, it would be a straightfoward solution in the end. Also, very easy to implement.
KraHen is offline  
Reply


Similar Threads Similar Threads
[Selling] Curse Voice Beta Keys!(7 treasures) 100e*gold |Lol communicate software+jungle timer
03/14/2014 - elite*gold Trading - 5 Replies
Hey there guys! I sell some beta keys for curse voice software. With this software u can communicate ingame and have an integrated jungle timer! One beta key costs 100 e*gold! No1: Treasure #230676 No2: Treasure #230679 No3: Treasure #230683 No4: Treasure #230686 No5: Treasure #230689
nfsw 2 processes !!!
11/10/2011 - Need for Speed World - 2 Replies
can anyone tell me how to run NFSW TWICE ON ONE PC ? i really need it ....
[HELP] Problem with processes
03/03/2011 - Shaiya Private Server - 1 Replies
I was attempting to change the number of stat points per level for the selected mode and I believe I did it correctly. I made the change while the server was still online however and I've been told that this was the reason I began having problems. I've tried looking into every possible solution that I could think of. I even formatted and completely re installed the server as well as the SQL server. What's the problem... neither my Game or GameWar services will connect to the SQL server...
Hiding Processes
02/02/2007 - Conquer Online 2 - 11 Replies
I can't leave my guys in tg anymore since my parents Ctrl/alt/delete to see if conquer is running as a processes. I've have used the double desktop thing for awhile but now i need something that will hide co from windows task manager. Any got an idea how i can do that?



All times are GMT +1. The time now is 19:26.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.