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.

Page 2 of 2 FirstFirst 12
Results 26 to 34 of 34

Thread: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

  1. #26
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    want them to be serialized
    Why serialized? What information do you want sent from one client to the other?
    Do you think sending a serialization of a class will be easier than sending a String?
    If you don't understand my answer, don't ignore it, ask a question.

  2. #27
    Member
    Join Date
    Mar 2013
    Posts
    31
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    i have uploaded a video of my program.....can u please take a look at it for me ? Need help adding client/server app thread and serializable - YouTube

  3. #28
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    Can you post any questions or comments about the problems you are having here?
    If you don't understand my answer, don't ignore it, ask a question.

  4. #29
    Member
    Join Date
    Mar 2013
    Posts
    31
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    if u r not busy how about u do it for me please? i knw is something that u can do blind folded but is taking forever to do it.....cos i lack java knowledge..........i beg u dude

  5. #30
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    Before any code is written there needs to be a design. Some of the things to consider:
    What messages are to be sent from one client to another?
    What response, if any, should be made when a client receives a message?
    Would the server get involved or would the server just forward what it received from one client to the other client?
    What programs/PCs are involved: one server and two clients. Nothing else?
    If you don't understand my answer, don't ignore it, ask a question.

  6. #31
    Member
    Join Date
    Mar 2013
    Posts
    31
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    i know what i want the program to do........one server two clients....the server does nothing but host the two clients receive their coordinates x and y, velocity and Timer then then broadcast to animate the two space ships .......

  7. #32
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    What about these two questions:
    What messages are to be sent from one client to another?
    What response, if any, should be made when a client receives a message?
    If you don't understand my answer, don't ignore it, ask a question.

  8. #33
    Member
    Join Date
    Mar 2013
    Posts
    31
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    that's what i don't knw brother......what kind of message to be sent and what respond ? u can take a look at my Assignment question all these are there maybe u can understand better.......https://www.dropbox.com/s/4wfjijsiel..._1213_Sem2.doc

  9. #34
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: 2D JAVA GAME TCP SERVER/CLEINT SUPPORT HELP?

    Maybe using the word message is confusing.
    What does one client have to tell the other for them to play the game?

    This topic has been continued at:
    http://www.javaprogrammingforums.com...ream-help.html
    If you don't understand my answer, don't ignore it, ask a question.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Handling TCP and UDP in same server
    By ToshX in forum Java Networking
    Replies: 2
    Last Post: December 2nd, 2011, 03:19 PM
  2. TCP/IP java client, c++ server
    By akboyd88 in forum Java Networking
    Replies: 0
    Last Post: March 24th, 2011, 10:46 AM
  3. Replies: 0
    Last Post: February 24th, 2011, 06:31 AM
  4. Replies: 1
    Last Post: September 30th, 2010, 02:36 PM
  5. TCP Client Server: Object Oriented
    By nffc luke in forum Object Oriented Programming
    Replies: 2
    Last Post: April 28th, 2010, 06:39 PM

Tags for this Thread