Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2012
    Rep Power

    Default How can I use Java to connect two or more people to instantly in an internet browser?

    I want to make a webpage that users will be able to log into a Java applet and send messages back and forth or move characters with keyboard and the results will show on other users that are logged into the Java applet instantly without having to use serious amounts of bandwidth to connect to server to check for data... Is there a way to just use the Java applet to send data directly to the other clients logged into the Java applet? You know like Runescape you can see other player's movements instantly and you know the program is not checking for server updates to get the position of other characters every couple of miliseconds because that would be way too much bandwidth. Anybody know a short code or the basics of this or a tutorial or other topic/post I could read to find out how to do this? I am a very experienced programmer, I don't know how to write Java code but I do understand the basics of it like getting the program compiler and writing the line include #stadfx or whatever. I understand the basic idea behind Java, the overall sytax and programming style that it uses. I have read through Java code before I should be able to take care of this myself if you could just point me in the right direction... Thanks for any help. :)
    Last edited by maxaquagangsta; 04-30-2012 at 04:01 AM.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Rep Power

    Default Re: How can I use Java to connect two or more people to instantly in an internet brow

    Applets are client side, so any communication between two different instances of an applet will require some sort of networking IO...whether through a central server or direction communication. One resource I'd recommend reading for direction (or server) communication is Lesson: All About Sockets (The Java™ Tutorials > Custom Networking)

Similar Threads

  1. Applet doesn't connect to server over internet
    By mjgood91 in forum Networking
    Replies: 1
    Last Post: 04-28-2012, 05:44 AM
  2. Append to JTextArea instantly Problem
    By jrdncchr in forum AWT / Swing
    Replies: 2
    Last Post: 12-17-2011, 07:50 PM
  3. Application does not connect over internet.
    By eLancaster in forum Networking
    Replies: 6
    Last Post: 06-28-2011, 08:16 PM
  4. How to authenticate code with no internet connect.
    By beardawg in forum Java Applets
    Replies: 1
    Last Post: 04-14-2010, 08:31 PM
  5. Replies: 0
    Last Post: 04-13-2010, 09:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts