PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
External aux service

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion
Display posts from previous:   

Author Message
daneel



Joined: 03 Feb 2006
Posts: 11

PostPosted: Mon Apr 02, 2007 8:06 am    Post subject: External aux service Reply with quote

Hello Smile

I don't know if this is the precise place where to post this, sorry in advance if it's not..

Anyway, here's my problem: I want my POL (095) server to be able to use a simple Java service that will be hosted in the same host where POL runs.

I'd like to do this because otherwise I'd have to implement the same thing in POL which is not so simple. This Java program is a very simple server, so I'd like POL to talk to it.

Now, all I know about this is that POL can listen on a certain port and receive and send packets through the net connection, but can't instead start a conversation itself.

So, what's the best way to accomplish the task? The only one I see by now is making POL listen on a port and then at start-up, after launching POL, launch the Java service for it to wait for packets from POL which represent requests for service.

But this isn't so good for many reasons.. for example, I can't "spawn" new instances of the Java services on demand because it's not POL who starts the conversation (unless I complicate the protocol very much).

Do you have any suggestions?

Thank you Smile

Author Message
tartaros



Joined: 27 Mar 2007
Posts: 24

PostPosted: Mon Apr 02, 2007 10:15 am    Post subject: Reply with quote

have the java program periodically try to connect to the given port and/or check for running processess, and if you see POL, try connecting...

Author Message
tekproxy
Distro Developer


Joined: 06 Apr 2006
Posts: 350
Location: Nederland, Texas

PostPosted: Mon Apr 02, 2007 10:19 am    Post subject: Reply with quote

You could also write a third program that establishes a connection with POL and whenever POL sends a command, it would connect to your Java server and relay the information. Actually, that program would be handy in general since adding outgoing aux connections probably wont exist in POL for a while.

Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty