Home
last modified time | relevance | path

Searched refs:ServerSocket (Results 1 – 25 of 56) sorted by relevance

123

/libcore/ojluni/src/main/java/javax/net/
DServerSocketFactory.java30 import java.net.ServerSocket;
98 public ServerSocket createServerSocket() throws IOException { in createServerSocket()
123 public abstract ServerSocket createServerSocket(int port) in createServerSocket()
153 public abstract ServerSocket
191 public abstract ServerSocket
209 public ServerSocket createServerSocket() in createServerSocket()
212 return new ServerSocket(); in createServerSocket()
215 public ServerSocket createServerSocket(int port) in createServerSocket()
218 return new ServerSocket(port); in createServerSocket()
221 public ServerSocket createServerSocket(int port, int backlog) in createServerSocket()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DServerSocketTest.java35 import java.net.ServerSocket;
56 ServerSocket s;
115 ServerSocket ss = null; in test_ConstructorI_SocksSet()
120 ss = new ServerSocket(0); in test_ConstructorI_SocksSet()
134 s = new ServerSocket(0, 10); in test_ConstructorII()
142 ServerSocket s1 = new ServerSocket(0); in test_ConstructorII()
145 ServerSocket s2 = new ServerSocket(s1.getLocalPort()); in test_ConstructorII()
155 s1 = new ServerSocket(0); in test_ConstructorII()
158 s1 = new ServerSocket(allocatedPort); in test_ConstructorII()
167 s = new ServerSocket(0, 10, InetAddress.getLocalHost()); in test_ConstructorIILjava_net_InetAddress()
[all …]
DSocketTest.java27 import java.net.ServerSocket;
75 ServerSocket socket; in run()
78 socket = new ServerSocket(port, backlog, in run()
83 socket = new ServerSocket(port, backlog); in run()
88 socket = new ServerSocket(); in run()
189 ServerSocket server = new ServerSocket(); in test_bindLjava_net_SocketAddress()
261 ServerSocket server = new ServerSocket(0); in test_close()
343 ServerSocket server = new ServerSocket(0); in test_connectLjava_net_SocketAddress()
363 server = new ServerSocket(0); in test_connectLjava_net_SocketAddress()
444 ServerSocket server = new ServerSocket(0); in test_connectLjava_net_SocketAddressI()
[all …]
DTestServerSocketInit.java21 import java.net.ServerSocket;
26 ServerSocket serverSocket = new ServerSocket(); in main()
/libcore/luni/src/test/java/libcore/java/net/
DOldServerSocketTest.java25 import java.net.ServerSocket;
40 ServerSocket s;
54 ServerSocket theSocket = new ServerSocket(); in performancePreferenceTest()
88 s = new ServerSocket(0, 1); in test_ConstructorII()
128 ServerSocket ss = new ServerSocket(); in test_Constructor()
134 s = new ServerSocket(0); in test_ConstructorI()
136 new ServerSocket(s.getLocalPort()); in test_ConstructorI()
150 s = new ServerSocket(0); in test_ConstructorI()
162 ServerSocket ss = new ServerSocket(0, 10, InetAddress.getLocalHost()); in test_ConstructorIILjava_net_InetAddress()
164 new ServerSocket(ss.getLocalPort(), 10, InetAddress.getLocalHost()); in test_ConstructorIILjava_net_InetAddress()
[all …]
DServerSocketTest.java22 import java.net.ServerSocket;
34 try (ServerSocket ss = new ServerSocket(0)) { in testTimeoutAfterAccept()
58 ServerSocket ss = new ServerSocket(); in testInitialState()
73 ServerSocket ss = new ServerSocket(); in testStateAfterClose()
DOldUnixSocketTest.java26 import java.net.ServerSocket;
40 final ServerSocket pingServer = new ServerSocket(0); in test_getInputStream()
107 ServerSocket ss = new ServerSocket(0); in test_getOutputStream()
DSocketTimeoutTest.java26 import java.net.ServerSocket;
92 try (ServerSocket ss = new ServerSocket(0)) { in testSocketReadTimeout()
109 ServerSocket serverSocket = new ServerSocket(0)) { in testSocketWriteNeverTimeouts()
154 checkOperationTimesOut(() -> new ServerSocket(0), in testServerSocketAcceptTimeout()
DOldSocketTest.java30 import java.net.ServerSocket;
48 ServerSocket ss;
83 ServerSocket ss = null; in test_ConstructorLjava_lang_StringI()
86 ss = new ServerSocket(0); in test_ConstructorLjava_lang_StringI()
210 ServerSocket server = new ServerSocket(0); in test_getInputStream()
594 ServerSocket serverSocket = new ServerSocket(0, 5, addr); in test_shutdownInput()
629 ServerSocket serverSocket = new ServerSocket(0, 5); in test_shutdownOutput()
732 ServerSocket serverSocket = new ServerSocket(0, 5); in test_isBound()
745 serverSocket = new ServerSocket(0, 5); in test_isBound()
766 ServerSocket serverSocket = new ServerSocket(0, 5); in test_isConnected()
[all …]
DServerSocketConcurrentCloseTest.java26 import java.net.ServerSocket;
51 class ExposedServerSocket extends ServerSocket { in testImplAccept_detectsClosedState()
134 ServerSocket serverSocket; in checkConnectIterationAndCloseSocket()
136 serverSocket = new ServerSocket(0 /* allocate port number automatically */); in checkConnectIterationAndCloseSocket()
222 private final ServerSocket serverSocket;
227 ServerRunnable(ServerSocket serverSocket) { in ServerRunnable()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/
DServerSocketFactoryTest.java27 import java.net.ServerSocket;
41 ServerSocket ss = sf.createServerSocket(); in test_createServerSocket()
48 ServerSocket ss = sf.createServerSocket(0); in test_createServerSocket_I()
68 ServerSocket ss = sf.createServerSocket(0, 0); in test_createServerSocket_II()
89 ServerSocket ss = sf.createServerSocket(0, 0, InetAddress.getLocalHost()); in test_createServerSocket_IIInetAddress()
114 public ServerSocket createServerSocket(int port) throws IOException { in createServerSocket()
119 public ServerSocket createServerSocket(int port, int backlog) in createServerSocket()
125 public ServerSocket createServerSocket(int port, int backlog, in createServerSocket()
DSocketFactoryTest.java27 import java.net.ServerSocket;
60 int sport = new ServerSocket(0).getLocalPort(); in test_createSocket_StringI()
97 int sport = new ServerSocket(0).getLocalPort(); in test_createSocket_InetAddressI()
128 int sport = new ServerSocket(0).getLocalPort(); in test_createSocket_InetAddressIInetAddressI()
155 int validPort = new ServerSocket(0).getLocalPort(); in test_createSocket_InetAddressIInetAddressI_IllegalArgumentException()
184 int validServerPortNumber = new ServerSocket(0).getLocalPort(); in test_createSocket_InetAddressIInetAddressI_ExceptionOrder()
214 int sport = new ServerSocket(0).getLocalPort(); in test_createSocket_05()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DFakeSSLServerSocketFactory.java20 import java.net.ServerSocket;
43 public ServerSocket createServerSocket(int port) throws IOException { in createServerSocket()
48 public ServerSocket createServerSocket(int port, int backlog) throws IOException { in createServerSocket()
53 public ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) in createServerSocket()
/libcore/luni/src/test/java/libcore/javax/net/
DServerSocketFactoryTest.java24 import java.net.ServerSocket;
35 ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(); in testCreateServerSocket()
41 ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(0); in testCreateServerSocketWithPort()
50 ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(0, 1); in testCreateServerSocketWithPortNoBacklog()
55 ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(0, 0); in testCreateServerSocketWithPortZeroBacklog()
60 ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(0, 50); in testCreateServerSocketWithPortAndBacklog()
64 private void testSocket(final ServerSocket serverSocket, int specifiedBacklog) in testSocket()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLServerSocketFactory.java32 import java.net.ServerSocket;
201 private ServerSocket throwException() throws SocketException { in throwException()
207 public ServerSocket createServerSocket() throws IOException { in createServerSocket()
213 public ServerSocket createServerSocket(int port) in createServerSocket()
220 public ServerSocket createServerSocket(int port, int backlog) in createServerSocket()
227 public ServerSocket
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSocketChannelTest.java30 import java.net.ServerSocket;
51 try (ServerSocket ss = new ServerSocket(0); in test_read_intoReadOnlyByteArrays()
102 ServerSocket ss = new ServerSocket(0); in test_channelSocketOutputStreamClosureState()
123 ServerSocket ss = new ServerSocket(0); in test_channelSocketInputStreamClosureState()
236 ServerSocket ss = new ServerSocket(0); in test_connect_blocking()
255 ServerSocket ss = new ServerSocket(0); in test_connect_nonBlocking()
341 ServerSocket ss = new ServerSocket(0)) { in test_getRemoteAddress()
351 ServerSocket server1 = new ServerSocket(0)) { in test_shutdownInput()
379 ServerSocket server1 = new ServerSocket(0)) { in test_shutdownOutput()
DAsynchronousSocketChannelTest.java24 import java.net.ServerSocket;
56 ServerSocket ss = new ServerSocket(0); in test_connect()
135 ServerSocket ss = new ServerSocket(0); in test_bind_usedAddress()
271 ServerSocket ss = new ServerSocket(0); in test_futureReadWrite()
320 ServerSocket ss = new ServerSocket(0); in test_completionHandlerReadWrite()
379 ServerSocket ss = new ServerSocket(0); in test_scatterReadWrite()
443 ServerSocket ss = new ServerSocket(0); in test_completionHandler_connect_npe()
465 ServerSocket ss = new ServerSocket(0); in test_read_npe()
565 ServerSocket ss = new ServerSocket(0); in test_read_failures()
635 ServerSocket ss = new ServerSocket(0); in test_write_npe()
[all …]
/libcore/ojluni/src/main/java/java/net/
DSocketSecrets.java41 } else if (obj instanceof ServerSocket) { in setOption()
42 impl = ((ServerSocket)obj).getImpl(); in setOption()
54 } else if (obj instanceof ServerSocket) { in getOption()
55 impl = ((ServerSocket)obj).getImpl(); in getOption()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLServerSocketFactoryTest.java21 import java.net.ServerSocket;
45 public ServerSocket createServerSocket(int arg0) throws IOException { in createServerSocket()
50 public ServerSocket createServerSocket(int arg0, int arg1) in createServerSocket()
56 public ServerSocket createServerSocket(int arg0, int arg1, in createServerSocket()
DSSLSocketFactoryTest.java19 import java.net.ServerSocket;
30 private ServerSocket ss;
34 ss = new ServerSocket(0); in startServer()
/libcore/ojluni/annotations/hiddenapi/java/net/
DServerSocket.java31 public class ServerSocket implements java.io.Closeable { class
33 ServerSocket(java.net.SocketImpl impl) { in ServerSocket() method in ServerSocket
37 public ServerSocket() throws java.io.IOException { in ServerSocket() method in ServerSocket
41 public ServerSocket(int port) throws java.io.IOException { in ServerSocket() method in ServerSocket
45 public ServerSocket(int port, int backlog) throws java.io.IOException { in ServerSocket() method in ServerSocket
49 public ServerSocket(int port, int backlog, java.net.InetAddress bindAddr) in ServerSocket() method in ServerSocket
/libcore/ojluni/annotations/mmodule/java/net/
DServerSocket.annotated.java33 public class ServerSocket implements java.io.Closeable { class
35 public ServerSocket() throws java.io.IOException { throw new RuntimeException("Stub!"); } in ServerSocket() method in ServerSocket
37 public ServerSocket(int port) throws java.io.IOException { throw new RuntimeException("Stub!"); } in ServerSocket() method in ServerSocket
39 public ServerSocket(int port, int backlog) throws java.io.IOException { throw new RuntimeException(… in ServerSocket() method in ServerSocket
41 public ServerSocket(int port, int backlog, java.net.InetAddress bindAddr) throws java.io.IOExceptio… in ServerSocket() method in ServerSocket
/libcore/luni/src/test/java/libcore/java/io/
DFileDescriptorTest.java24 import java.net.ServerSocket;
39 ServerSocket s = new ServerSocket(); in test_isSocket()
/libcore/ojluni/src/test/java/net/Socket/
DShutdownInput.java37 import java.net.ServerSocket;
50 try ( ServerSocket ss = new ServerSocket(0); in main()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DServerSocketChannelTest.java24 import java.net.ServerSocket;
184 ServerSocket socket = ssc.socket(); in test_bind_socketSync()
211 ServerSocket socket = ssc.socket(); in test_bind_socketSyncAfterBind()
254 ServerSocket s1 = this.serverChannel.socket(); in testSocket_Block_BeforeClose()
257 ServerSocket s2 = this.serverChannel.socket(); in testSocket_Block_BeforeClose()
270 ServerSocket s1 = this.serverChannel.socket(); in testSocket_NonBlock_BeforeClose()
273 ServerSocket s2 = this.serverChannel.socket(); in testSocket_NonBlock_BeforeClose()
287 ServerSocket s1 = this.serverChannel.socket(); in testSocket_Block_Closed()
290 ServerSocket s2 = this.serverChannel.socket(); in testSocket_Block_Closed()
300 ServerSocket s1 = this.serverChannel.socket(); in testSocket_NonBlock_Closed()
[all …]

123