Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Networking

  1. #1
    Junior Member
    Join Date
    Oct 2014
    Posts
    16
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Question Networking

    Dear Java Programmers,

    Moderators keep closing my threads because i don't have an 'open mind' so i will say exactly what i want. If u want to help me thank you but i don't want any tutorials if it doesn't explain EVERY line of code. I want to understand what every line of code does and not just what a few lines of code together do.

    I want to learn about networking but it seems to be very hard to find a good full tutorial about networking so i need to learn about Packages, Sockets etc but not just about Networking in general. I have to try find a good tutorial for every part of Networking.

    I want to make a program (It is NOT a game, i know: for making games u need to be very good at programming and i'm not yet). I don't know how to explain my program but it uses something u will need to use in a game too. In a game u need to handle moving players, and u don't want to do that with the client because the client can be decompiled so u need to let the server handle it. But how? Lets say u send packages with move up for example, the server will move the player up, but if the client is decompiled and u send 2 packages instead of 1 at once and compile it again u will run 2 times faster. How can i avoid that? Is it possible to make an array of every connected user and validate that u dont receive more than like 60 packages per second from every user? U can see it as like the X and Y of the player when he/she logged out and when the player logs back in ur on the same X and Y as when you left.

    Also if i want to save variables for every user that change like every second should i save them every 3 seconds or something? Or every 10 seconds or every second? Because its not a big problem if the variable is a little bit old but its just important to be close to the newest one but i dont want to drop the performance because u have to store that variables for every user in a database.

    Thanks in advance, (AND PLEASE don't close my thread..)
    Resantic

  2. The Following User Says Thank You to Resantic For This Useful Post:



  3. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Networking

    These are the same questions you've asked before and didn't like the answers you'd received. Come back when you have some code that you need help with.

    Thread closed.

  4. The Following User Says Thank You to GregBrannon For This Useful Post:


Similar Threads

  1. Networking Protocols
    By keepStriving in forum Java Networking
    Replies: 5
    Last Post: June 17th, 2013, 11:50 AM
  2. Networking asignment
    By Ralbeyd in forum Totally Off Topic
    Replies: 1
    Last Post: February 1st, 2012, 06:28 AM
  3. Mina networking
    By imsuperman05 in forum Java Networking
    Replies: 5
    Last Post: December 24th, 2011, 01:01 PM
  4. Networking Java
    By aneel in forum JDBC and Database Tutorials
    Replies: 1
    Last Post: December 13th, 2011, 03:28 AM
  5. Game Networking
    By Parsnips in forum Java Networking
    Replies: 15
    Last Post: December 1st, 2011, 02:57 PM