internet explorer - Open Links with Java On Other Computers -


so i'm programming game right want create in-game voting. managed sites pop up, however, don't pop on player's computer, rather server. wondering how make pop on person's computer...

    public static void openlink(string urlstring) {     try {         desktop.getdesktop().browse(new url(urlstring).touri());     } catch (exception e) {         e.printstacktrace();     } } 

this of course opens link on server. have methods retrieve player's client, have able this?

i'm deving game called maplestory right educational purposes. i'm not versed dealing concerning network, assume posting code pertaining client might help.

public mapleclient(mapleaesofb send, mapleaesofb receive, iosession session) {     this.send = send;     this.receive = receive;     this.session = session; } 

that's constructor class client. know there's not enough information, if it's requested can continue add more until it's solved. tried looking online help, have no clue.

if post game, engine used, server technology used, etc, might able more.

in general, process going bit more involved few lines of code on server. you've noticed, action take on server going happen on server unless architect out.

step 1 host voting site somewhere/somehow (looks you're doing this.

step 2 link voting site clients somehow, know when/where go.

after notifying clients need open link, need open link on each client.

i'd assume have logic sending result server in place based on answer.

if can post more details architecture of project, might possible give more specific help, isn't there built-in solution for, far i'm aware.


Comments