Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
356 chris 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:02 CET 2013 -->
6
<TITLE>
7
ServerSocket (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-01-27">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="ServerSocket (libgdx API)";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
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="">
35
<TR>
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="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ServerSocket.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48
  </TR>
49
</TABLE>
50
</TD>
51
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52
 
53
                                libgdx API
54
                                <style>
55
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
56
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
57
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
58
                                .TableHeadingColor { background:#EEEEFF; }
59
                                a { text-decoration:none }
60
                                a:hover { text-decoration:underline }
61
                                a:link, a:visited { color:blue }
62
                                table { border:0px }
63
                                .TableRowColor td:first-child { border-left:1px solid black }
64
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
65
                                hr { border:0px; border-bottom:1px solid #333366; }
66
                                </style>
67
                        </EM>
68
</TD>
69
</TR>
70
 
71
<TR>
72
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
73
&nbsp;<A HREF="../../../../com/badlogic/gdx/net/NetJavaImpl.html" title="class in com.badlogic.gdx.net"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/net/ServerSocketHints.html" title="class in com.badlogic.gdx.net"><B>NEXT CLASS</B></A></FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../../index.html?com/badlogic/gdx/net/ServerSocket.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="ServerSocket.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
78
&nbsp;<SCRIPT type="text/javascript">
79
  <!--
80
  if(window==top) {
81
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
82
  }
83
  //-->
84
</SCRIPT>
85
<NOSCRIPT>
86
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
87
</NOSCRIPT>
88
 
89
 
90
</FONT></TD>
91
</TR>
92
<TR>
93
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
94
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
95
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
96
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
97
</TR>
98
</TABLE>
99
<A NAME="skip-navbar_top"></A>
100
<!-- ========= END OF TOP NAVBAR ========= -->
101
 
102
<HR>
103
<!-- ======== START OF CLASS DATA ======== -->
104
<H2>
105
<FONT SIZE="-1">
106
com.badlogic.gdx.net</FONT>
107
<BR>
108
Interface ServerSocket</H2>
109
<DL>
110
<DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></DD>
111
</DL>
112
<HR>
113
<DL>
114
<DT><PRE>public interface <B>ServerSocket</B><DT>extends <A HREF="../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></DL>
115
</PRE>
116
 
117
<P>
118
A server socket that accepts new incoming connections, returning
119
 <A HREF="../../../../com/badlogic/gdx/net/Socket.html" title="interface in com.badlogic.gdx.net"><CODE>Socket</CODE></A> instances. The <A HREF="../../../../com/badlogic/gdx/net/ServerSocket.html#accept(com.badlogic.gdx.net.SocketHints)"><CODE>accept(SocketHints)</CODE></A> method
120
 should preferably be called in a separate thread as it is blocking.
121
<P>
122
 
123
<P>
124
<DL>
125
<DT><B>Author:</B></DT>
126
  <DD>mzechner, noblemaster</DD>
127
</DL>
128
<HR>
129
 
130
<P>
131
 
132
<!-- ========== METHOD SUMMARY =========== -->
133
 
134
<A NAME="method_summary"><!-- --></A>
135
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
136
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
137
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
138
<B>Method Summary</B></FONT></TH>
139
</TR>
140
<TR BGCOLOR="white" CLASS="TableRowColor">
141
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
142
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/net/Socket.html" title="interface in com.badlogic.gdx.net">Socket</A></CODE></FONT></TD>
143
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/net/ServerSocket.html#accept(com.badlogic.gdx.net.SocketHints)">accept</A></B>(<A HREF="../../../../com/badlogic/gdx/net/SocketHints.html" title="class in com.badlogic.gdx.net">SocketHints</A>&nbsp;hints)</CODE>
144
 
145
<BR>
146
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accepts a new incoming connection from a client <A HREF="../../../../com/badlogic/gdx/net/Socket.html" title="interface in com.badlogic.gdx.net"><CODE>Socket</CODE></A>.</TD>
147
</TR>
148
<TR BGCOLOR="white" CLASS="TableRowColor">
149
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
150
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/Net.Protocol.html" title="enum in com.badlogic.gdx">Net.Protocol</A></CODE></FONT></TD>
151
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/net/ServerSocket.html#getProtocol()">getProtocol</A></B>()</CODE>
152
 
153
<BR>
154
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
155
</TR>
156
</TABLE>
157
&nbsp;<A NAME="methods_inherited_from_class_com.badlogic.gdx.utils.Disposable"><!-- --></A>
158
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
159
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
160
<TH ALIGN="left"><B>Methods inherited from interface com.badlogic.gdx.utils.<A HREF="../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></B></TH>
161
</TR>
162
<TR BGCOLOR="white" CLASS="TableRowColor">
163
<TD><CODE><A HREF="../../../../com/badlogic/gdx/utils/Disposable.html#dispose()">dispose</A></CODE></TD>
164
</TR>
165
</TABLE>
166
&nbsp;
167
<P>
168
 
169
<!-- ============ METHOD DETAIL ========== -->
170
 
171
<A NAME="method_detail"><!-- --></A>
172
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
173
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
174
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
175
<B>Method Detail</B></FONT></TH>
176
</TR>
177
</TABLE>
178
 
179
<A NAME="getProtocol()"><!-- --></A><H3>
180
getProtocol</H3>
181
<PRE>
182
<A HREF="../../../../com/badlogic/gdx/Net.Protocol.html" title="enum in com.badlogic.gdx">Net.Protocol</A> <B>getProtocol</B>()</PRE>
183
<DL>
184
<DD><DL>
185
</DL>
186
</DD>
187
<DD><DL>
188
 
189
<DT><B>Returns:</B><DD>the Protocol used by this socket</DL>
190
</DD>
191
</DL>
192
<HR>
193
 
194
<A NAME="accept(com.badlogic.gdx.net.SocketHints)"><!-- --></A><H3>
195
accept</H3>
196
<PRE>
197
<A HREF="../../../../com/badlogic/gdx/net/Socket.html" title="interface in com.badlogic.gdx.net">Socket</A> <B>accept</B>(<A HREF="../../../../com/badlogic/gdx/net/SocketHints.html" title="class in com.badlogic.gdx.net">SocketHints</A>&nbsp;hints)</PRE>
198
<DL>
199
<DD>Accepts a new incoming connection from a client <A HREF="../../../../com/badlogic/gdx/net/Socket.html" title="interface in com.badlogic.gdx.net"><CODE>Socket</CODE></A>. The
200
 given hints will be applied to the accepted socket. Blocking, call
201
 on a separate thread.
202
<P>
203
<DD><DL>
204
</DL>
205
</DD>
206
<DD><DL>
207
<DT><B>Parameters:</B><DD><CODE>hints</CODE> - additional <A HREF="../../../../com/badlogic/gdx/net/SocketHints.html" title="class in com.badlogic.gdx.net"><CODE>SocketHints</CODE></A> applied to the accepted <A HREF="../../../../com/badlogic/gdx/net/Socket.html" title="interface in com.badlogic.gdx.net"><CODE>Socket</CODE></A>. Input null to
208
        use the default setting provided by the system.
209
<DT><B>Returns:</B><DD>the accepted <A HREF="../../../../com/badlogic/gdx/net/Socket.html" title="interface in com.badlogic.gdx.net"><CODE>Socket</CODE></A>
210
<DT><B>Throws:</B>
211
<DD><CODE><A HREF="../../../../com/badlogic/gdx/utils/GdxRuntimeException.html" title="class in com.badlogic.gdx.utils">GdxRuntimeException</A></CODE> - in case an error ocurred</DL>
212
</DD>
213
</DL>
214
<!-- ========= END OF CLASS DATA ========= -->
215
<HR>
216
 
217
 
218
<!-- ======= START OF BOTTOM NAVBAR ====== -->
219
<A NAME="navbar_bottom"><!-- --></A>
220
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
221
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
222
<TR>
223
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
224
<A NAME="navbar_bottom_firstrow"><!-- --></A>
225
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
226
  <TR ALIGN="center" VALIGN="top">
227
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
228
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
229
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
230
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ServerSocket.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
231
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
232
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
233
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
234
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
235
  </TR>
236
</TABLE>
237
</TD>
238
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
239
libgdx API</EM>
240
</TD>
241
</TR>
242
 
243
<TR>
244
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
245
&nbsp;<A HREF="../../../../com/badlogic/gdx/net/NetJavaImpl.html" title="class in com.badlogic.gdx.net"><B>PREV CLASS</B></A>&nbsp;
246
&nbsp;<A HREF="../../../../com/badlogic/gdx/net/ServerSocketHints.html" title="class in com.badlogic.gdx.net"><B>NEXT CLASS</B></A></FONT></TD>
247
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
248
  <A HREF="../../../../index.html?com/badlogic/gdx/net/ServerSocket.html" target="_top"><B>FRAMES</B></A>  &nbsp;
249
&nbsp;<A HREF="ServerSocket.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
250
&nbsp;<SCRIPT type="text/javascript">
251
  <!--
252
  if(window==top) {
253
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
254
  }
255
  //-->
256
</SCRIPT>
257
<NOSCRIPT>
258
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
259
</NOSCRIPT>
260
 
261
 
262
</FONT></TD>
263
</TR>
264
<TR>
265
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
266
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
267
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
268
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
269
</TR>
270
</TABLE>
271
<A NAME="skip-navbar_bottom"></A>
272
<!-- ======== END OF BOTTOM NAVBAR ======= -->
273
 
274
<HR>
275
 
276
                                <div style="font-size:9pt"><i>
277
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
278
                                </i></div>
279
 
280
</BODY>
281
</HTML>