| | |
ping
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
I know the algorithm for pong.
But my brother is better, he knows Ping Pong. Serioulsy, he learned it when he was at University and now he teaches gymnastics at schools
But my brother is better, he knows Ping Pong. Serioulsy, he learned it when he was at University and now he teaches gymnastics at schools
Check out my New Bike at my Public Profile at the "About Me" tab
Thats real funny JavaAddict
Before you start u need to do this:
First create a client server app
you need to also create your ping protocol
your classes should be like this
PingClient, PingProtocol and PingServer
Now here's your algorithm
send a ping request to your server i.e
ping [server-ip-address]
recieve the request on the server side
compare the ip-address with the server's ip-address
if they match send an acknowledgement back
if not have the client timeout
Before you start u need to do this:
First create a client server app
you need to also create your ping protocol
your classes should be like this
PingClient, PingProtocol and PingServer
Now here's your algorithm
send a ping request to your server i.e
ping [server-ip-address]
recieve the request on the server side
compare the ip-address with the server's ip-address
if they match send an acknowledgement back
if not have the client timeout
Last edited by ejosiah; Mar 26th, 2009 at 6:50 am.
![]() |
Similar Threads
- Optimum Online Web Hosting. (Networking Hardware Configuration)
- One way ping problem (Networking Hardware Configuration)
Other Threads in the Java Forum
- Previous Thread: Encrypting a media file
- Next Thread: making a class
| Thread Tools | Search this Thread |
Tag cloud for Java
affinetransform android api apple applet application arc arguments array arrays automation binary bluetooth businessintelligence chat class classes client code component database desktop draw ebook eclipse encode equation error event exception file fractal game givemetehcodez graphics gui helpwithhomework html ide image input integer intersect j2me java javaexcel javaprojects jmf jni jpanel julia linked linux list loop mac main map method methods mobile netbeans newbie number object open-source oracle parameter print problem program programming project properties recursion reference replaysolutions rotatetext scanner score screen scrollbar server set size sms socket sort sql string superclass swing template test threads time tree windows working xstream






