logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Communication between the OS and NWNX

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
maxpawkas



Joined: 15 Aug 2012
Posts: 1

PostPosted: Wed Aug 15, 2012 20:08    Post subject: Communication between the OS and NWNX Reply with quote

It's my first post - I had no need to write here earlier - so hello everyone!

I'd like to ask about any possibility to communicate with nwnx from the OS level.
What I wanna do, is to create an external application to perform nwnx actions, like at least shutting the server down, but also kicking players, sending server messages and so on.
I know I could simply kill nwn-sever app, so that nwnx would create a new one, but i doesn't do the trick for obvious reasons.
Also - setting a h-beat script and looking for a binary variable of a particular state in database seems tricky, but I don't like the idea.

It would be also lovely if I was able to externaly fire nwn scripts inside the module.

Is there any way to do it? Can I do stuff inside the module from the outside (basicly, from the OS level)?

We're running nwnx on Windows Server 2008 R2.

Thanks in advance
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Mon Oct 28, 2013 17:42    Post subject: Reply with quote

Yes, you can do that, but you'd have to write all that yourself: there is no API available for remote/async calls. Create a new thread to process incoming messages and put them into a shared queue, then hook the main loop and check (in a thread-safe way) for new messages in the queue and process that.
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group