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 
 
Somewone writing a plugin for TCP-communication?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Milan



Joined: 09 Oct 2006
Posts: 5

PostPosted: Tue Oct 10, 2006 0:03    Post subject: Somewone writing a plugin for TCP-communication? Reply with quote

Using NWNX4 we will be able to write information to a database and read them back. Thats fine, if all the logic of your persistent world is coded in NWN script.

If you would like to use some other serverside component to handle relevant aspects of your gameworld (quests and their progression, events that should happen in the world...) this database could still be used to send information between the NWN2-process and your other component, if both are reading/writing into the database. Of cause this is not the best situation Wink

So it would be very nice, if the NWN2-process could communicate per TCP-IP to a configurated machine/port where the other component listens and answers. Sending/receiving simple strings would be sufficient. A TCP-IP connection should be opened and only closed/reopened on failure. There should be a short timeout for connecting to the port / for sending.

Is anybody out there, who would like to have such a plugin too and who is able to code this in C?
I'm not really good in C Wink and it would be nice to have some expert help here Smile
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Tue Oct 10, 2006 19:42    Post subject: Reply with quote

This might be interesting for you:

MNX plugin for Windows released
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Milan



Joined: 09 Oct 2006
Posts: 5

PostPosted: Tue Oct 10, 2006 22:03    Post subject: Reply with quote

Thanks for your link, Papillon. I took the MNX-Plugin witch is downloadable from MNXJ too. Well, the C++ source doesn't seem too complicated. Perhaps I would be able to take this and put it into this new plugin structure for NWNX4... will look at this and a C++ development platform for win the next days.

Often there are many ways to implement IP connections, some are robust Wink some other not. If anyone looks at the source in this MNX-Plugin and don't think this is well done and robust, please give me a hint Wink

I hope it won't be too complicated to "switch" UDP to TCP Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion 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