Results 1 to 4 of 4
  1. #1
    Deboade is offline Member
    Join Date
    Aug 2015
    Posts
    1
    Rep Power
    0

    Default Ping-Pong client server application

    Can somebody help me to write a ping-pong client and server application, such that when the client send a ping message to the server, the server will respond with a pong message? Thank you all.

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Ping-Pong client server application

    I suggest you check out the Oracle socket tutorial which actually details exactly what you're asking - an echo client/server.

    https://docs.oracle.com/javase/tutor...rking/sockets/

    Not much help anyone can give you if you don't have something that you can be helped with at this point.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    Join Date
    Aug 2015
    Location
    Northern California
    Posts
    31
    Rep Power
    0

    Default Re: Ping-Pong client server application

    I simply Googled for an example that's the beauty of Java. If you can't find it as an example you can find it on Github. Of course you do need to hit the tutorials for a couple months to learn how to use this stuff but there is a ton of examples available these days.
    Use Java to Ping Another Host

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Ping-Pong client server application

    Yeah, unfortunately that is exactly not what the guy is asking for. You're taking ping too literally.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Ping Pong Server/Client problem
    By simon.black325 in forum New To Java
    Replies: 0
    Last Post: 09-20-2011, 05:42 AM
  2. ping pong
    By ahmed_ijsh in forum Threads and Synchronization
    Replies: 2
    Last Post: 11-01-2010, 12:56 PM
  3. ping pong
    By ahmed_ijsh in forum Networking
    Replies: 0
    Last Post: 10-31-2010, 02:11 AM
  4. ping pong
    By ahmed_ijsh in forum Java Gaming
    Replies: 0
    Last Post: 10-31-2010, 02:10 AM
  5. Ping pong game
    By adam405 in forum New To Java
    Replies: 8
    Last Post: 10-20-2010, 03:52 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
  •