1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.6.0_20) on Mon May 17 07:46:02 CEST 2010 -->
10 <META NAME=
"date" CONTENT=
"2010-05-17">
12 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"stylesheet.css" TITLE=
"Style">
14 <SCRIPT type=
"text/javascript">
15 function windowTitle()
17 if (location.href.indexOf('is-external=true') == -
1) {
18 parent.document.
title=
"pong";
27 <BODY BGCOLOR=
"white" onload=
"windowTitle();">
31 <!-- ========= START OF TOP NAVBAR ======= -->
32 <A NAME=
"navbar_top"><!-- --></A>
33 <A HREF=
"#skip-navbar_top" title=
"Skip navigation links"></A>
34 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
36 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
37 <A NAME=
"navbar_top_firstrow"><!-- --></A>
38 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
39 <TR ALIGN=
"center" VALIGN=
"top">
40 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
41 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
42 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
43 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
44 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
45 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
49 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
55 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
56 PREV CLASS
57 NEXT CLASS
</FONT></TD>
58 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
59 <A HREF=
"index.html?pong.html" target=
"_top"><B>FRAMES
</B></A>
60 <A HREF=
"pong.html" target=
"_top"><B>NO FRAMES
</B></A>
61 <SCRIPT type=
"text/javascript">
64 document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
69 <A HREF=
"allclasses-noframe.html"><B>All Classes
</B></A>
76 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
77 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
78 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
79 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
82 <A NAME=
"skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
86 <!-- ======== START OF CLASS DATA ======== -->
91 <IMG SRC=
"./resources/inherit.gif" ALT=
"extended by "><B>pong
</B>
95 <DT><PRE>public class
<B>pong
</B><DT>extends java.lang.Object
</DL>
99 Implementation of classical
"PONG" game modified to pass ball over TCP/IP connection.
100 You need to run two instances (client + server).
101 Game takes one optional commandline argument specifiing remote host running the server (localhost is default).
102 If there's no server running on desired hostname, server is started on local machine on port
1033.
103 Copylefted by: Harvie
2o1o
111 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
113 <A NAME=
"constructor_summary"><!-- --></A>
114 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
115 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
116 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
117 <B>Constructor Summary
</B></FONT></TH>
119 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
120 <TD><CODE><B><A HREF=
"pong.html#pong()">pong
</A></B>()
</CODE>
123 </TD>
127 <!-- ========== METHOD SUMMARY =========== -->
129 <A NAME=
"method_summary"><!-- --></A>
130 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
131 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
132 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
133 <B>Method Summary
</B></FONT></TH>
135 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
136 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
137 <CODE>static
void
</CODE></FONT></TD>
138 <TD><CODE><B><A HREF=
"pong.html#main(java.lang.String[])">main
</A></B>(java.lang.String[]
args)
</CODE>
141 </TD>
144 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
145 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
146 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
147 <TH ALIGN=
"left"><B>Methods inherited from class java.lang.Object
</B></TH>
149 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
150 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
</CODE></TD>
156 <!-- ========= CONSTRUCTOR DETAIL ======== -->
158 <A NAME=
"constructor_detail"><!-- --></A>
159 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
160 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
161 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
162 <B>Constructor Detail
</B></FONT></TH>
166 <A NAME=
"pong()"><!-- --></A><H3>
169 public
<B>pong
</B>()
</PRE>
173 <!-- ============ METHOD DETAIL ========== -->
175 <A NAME=
"method_detail"><!-- --></A>
176 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
177 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
178 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
179 <B>Method Detail
</B></FONT></TH>
183 <A NAME=
"main(java.lang.String[])"><!-- --></A><H3>
186 public static void
<B>main
</B>(java.lang.String[]
args)
187 throws java.lang.InterruptedException
</PRE>
192 <DD><CODE>java.lang.InterruptedException
</CODE></DL>
195 <!-- ========= END OF CLASS DATA ========= -->
199 <!-- ======= START OF BOTTOM NAVBAR ====== -->
200 <A NAME=
"navbar_bottom"><!-- --></A>
201 <A HREF=
"#skip-navbar_bottom" title=
"Skip navigation links"></A>
202 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
204 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
205 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
206 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
207 <TR ALIGN=
"center" VALIGN=
"top">
208 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
209 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
210 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
211 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
212 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
213 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
217 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
223 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
224 PREV CLASS
225 NEXT CLASS
</FONT></TD>
226 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
227 <A HREF=
"index.html?pong.html" target=
"_top"><B>FRAMES
</B></A>
228 <A HREF=
"pong.html" target=
"_top"><B>NO FRAMES
</B></A>
229 <SCRIPT type=
"text/javascript">
232 document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
237 <A HREF=
"allclasses-noframe.html"><B>All Classes
</B></A>
244 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
245 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
246 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
247 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
250 <A NAME=
"skip-navbar_bottom"></A>
251 <!-- ======== END OF BOTTOM NAVBAR ======= -->