Home
last modified time | relevance | path

Searched refs:serverSocket (Results 1 – 25 of 88) sorted by relevance

1234

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DDelegatingServerSocketFactory.java37 ServerSocket serverSocket = delegate.createServerSocket(); in createServerSocket() local
38 configureServerSocket(serverSocket); in createServerSocket()
39 return serverSocket; in createServerSocket()
44 ServerSocket serverSocket = delegate.createServerSocket(port); in createServerSocket() local
45 configureServerSocket(serverSocket); in createServerSocket()
46 return serverSocket; in createServerSocket()
51 ServerSocket serverSocket = delegate.createServerSocket(port, backlog); in createServerSocket() local
52 configureServerSocket(serverSocket); in createServerSocket()
53 return serverSocket; in createServerSocket()
59 ServerSocket serverSocket = delegate.createServerSocket(port, backlog, ifAddress); in createServerSocket() local
[all …]
DSocksProxy.java57 private ServerSocket serverSocket; field in SocksProxy
61 serverSocket = new ServerSocket(0); in play()
62 executor.execute(new NamedRunnable("SocksProxy %s", serverSocket.getLocalPort()) { in play()
66 Socket socket = serverSocket.accept(); in play()
81 "localhost", serverSocket.getLocalPort())); in proxy()
89 serverSocket.close(); in shutdown()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DSocketTransportWrapper.java48 private ServerSocket serverSocket; field in SocketTransportWrapper
81 serverSocket = new ServerSocket(port, 0, hostAddr); in startListening()
83 serverSocket = new ServerSocket(port); in startListening()
89 iAddress = serverSocket.getInetAddress(); in startListening()
94 address = iAddress.getHostName() + ":" + serverSocket.getLocalPort(); in startListening()
102 if (serverSocket != null) { in stopListening()
103 serverSocket.close(); in stopListening()
115 synchronized (serverSocket) { in accept()
116 serverSocket.setSoTimeout((int) acceptTimeout); in accept()
118 transportSocket = serverSocket.accept(); in accept()
[all …]
/external/jetty/src/java/org/eclipse/jetty/server/
DShutdownMonitor.java76 if (serverSocket == null) in run()
81 while (serverSocket != null) in run()
86 socket = serverSocket.accept(); in run()
115 close(serverSocket); in run()
116 serverSocket = null; in run()
155 if (serverSocket == null) in start()
175 serverSocket = new ServerSocket(port,1,InetAddress.getByName("127.0.0.1")); in startListenSocket()
179 port = serverSocket.getLocalPort(); in startListenSocket()
194 serverSocket = null; in startListenSocket()
201 debug("%s",serverSocket); in startListenSocket()
[all …]
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/core/server/
DAbstractFtpServer.java89 private ServerSocket serverSocket = null; field in AbstractFtpServer
139 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
141 this.serverControlPort = serverSocket.getLocalPort(); in run()
152 Socket clientSocket = serverSocket.accept(); in run()
182 if (serverSocket != null) { in run()
183 serverSocket.close(); in run()
206 if (serverSocket != null) { in stop()
208 serverSocket.close(); in stop()
315 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
331 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/server/
DAbstractFtpServer.java90 private ServerSocket serverSocket = null; field in AbstractFtpServer
140 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
142 this.serverControlPort = serverSocket.getLocalPort(); in run()
153 Socket clientSocket = serverSocket.accept(); in run()
183 if (serverSocket != null) { in run()
184 serverSocket.close(); in run()
207 if (serverSocket != null) { in stop()
209 serverSocket.close(); in stop()
316 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
332 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/core/server/
DAbstractFtpServer.java90 private ServerSocket serverSocket = null; field in AbstractFtpServer
140 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
142 this.serverControlPort = serverSocket.getLocalPort(); in run()
153 Socket clientSocket = serverSocket.accept(); in run()
183 if (serverSocket != null) { in run()
184 serverSocket.close(); in run()
207 if (serverSocket != null) { in stop()
209 serverSocket.close(); in stop()
316 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
332 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/core/server/
DAbstractFtpServer.java90 private ServerSocket serverSocket = null; field in AbstractFtpServer
140 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
142 this.serverControlPort = serverSocket.getLocalPort(); in run()
153 Socket clientSocket = serverSocket.accept(); in run()
183 if (serverSocket != null) { in run()
184 serverSocket.close(); in run()
207 if (serverSocket != null) { in stop()
209 serverSocket.close(); in stop()
316 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
332 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/
DMockSpdyPeer.java50 private ServerSocket serverSocket; field in MockSpdyPeer
115 if (serverSocket != null) throw new IllegalStateException(); in play()
116 serverSocket = new ServerSocket(0); in play()
117 serverSocket.setReuseAddress(true); in play()
118 port = serverSocket.getLocalPort(); in play()
133 socket = serverSocket.accept(); in readAndWriteFrames()
188 ServerSocket serverSocket = this.serverSocket; in close() local
189 if (serverSocket != null) { in close()
190 Util.closeQuietly(serverSocket); in close()
191 this.serverSocket = null; in close()
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/main/java/org/mockftpserver/core/server/
DAbstractFtpServer.java89 private ServerSocket serverSocket = null; field in AbstractFtpServer
139 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
146 serverSocket.setSoTimeout(500); in run()
149 Socket clientSocket = serverSocket.accept(); in run()
174 if (serverSocket != null) { in run()
175 serverSocket.close(); in run()
303 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
319 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/main/java/org/mockftpserver/core/server/
DAbstractFtpServer.java89 private ServerSocket serverSocket = null; field in AbstractFtpServer
139 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
146 serverSocket.setSoTimeout(500); in run()
149 Socket clientSocket = serverSocket.accept(); in run()
174 if (serverSocket != null) { in run()
175 serverSocket.close(); in run()
303 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
319 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/mockftpserver/tags/2.0-rc1/src/main/java/org/mockftpserver/core/server/
DAbstractFtpServer.java110 private ServerSocket serverSocket = null; field in AbstractFtpServer
160 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
167 serverSocket.setSoTimeout(500); in run()
170 Socket clientSocket = serverSocket.accept(); in run()
195 if (serverSocket != null) { in run()
196 serverSocket.close(); in run()
324 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
340 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/core/server/
DAbstractFtpServer.java89 private ServerSocket serverSocket = null; field in AbstractFtpServer
139 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
146 serverSocket.setSoTimeout(500); in run()
149 Socket clientSocket = serverSocket.accept(); in run()
174 if (serverSocket != null) { in run()
175 serverSocket.close(); in run()
299 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
315 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/mockftpserver/tags/2.0/src/main/java/org/mockftpserver/core/server/
DAbstractFtpServer.java89 private ServerSocket serverSocket = null; field in AbstractFtpServer
139 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
146 serverSocket.setSoTimeout(500); in run()
149 Socket clientSocket = serverSocket.accept(); in run()
174 if (serverSocket != null) { in run()
175 serverSocket.close(); in run()
303 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
319 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/core/server/
DAbstractFtpServer.java89 private ServerSocket serverSocket = null; field in AbstractFtpServer
139 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
146 serverSocket.setSoTimeout(500); in run()
149 Socket clientSocket = serverSocket.accept(); in run()
174 if (serverSocket != null) { in run()
175 serverSocket.close(); in run()
289 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
305 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/core/server/
DAbstractFtpServer.java89 private ServerSocket serverSocket = null; field in AbstractFtpServer
139 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
146 serverSocket.setSoTimeout(500); in run()
149 Socket clientSocket = serverSocket.accept(); in run()
179 if (serverSocket != null) { in run()
180 serverSocket.close(); in run()
304 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
320 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/core/server/
DAbstractFtpServer.java89 private ServerSocket serverSocket = null; field in AbstractFtpServer
139 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
146 serverSocket.setSoTimeout(500); in run()
149 Socket clientSocket = serverSocket.accept(); in run()
174 if (serverSocket != null) { in run()
175 serverSocket.close(); in run()
290 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
306 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRDebugEventProxy.m51 serverSocket = -1;
61 if (serverSocket != -1)
62 shutdown(serverSocket,SHUT_RDWR);
63 serverSocket = -1;
71 if (serverSocket == -1) {
72 serverSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
74 NSAssert1(serverSocket != -1, @"Failed to create debugger socket. %s", strerror(errno));
77 …setsockopt(serverSocket, SOL_SOCKET, SO_KEEPALIVE|SO_REUSEPORT|SO_REUSEADDR|TCP_NODELAY, (void *)&…
84 …NSAssert1( bind(serverSocket, (struct sockaddr *)&server_addr, sizeof(struct sockaddr)) != -1, @"b…
86 NSAssert1(listen(serverSocket,50) == 0, @"listen(2) failed. %s", strerror(errno));
[all …]
/external/vogar/src/vogar/monitor/
DTargetMonitor.java51 final ServerSocket serverSocket = new ServerSocket(port); in await() local
52 serverSocket.setSoTimeout(ACCEPT_TIMEOUT_MILLIS); in await()
53 serverSocket.setReuseAddress(true); in await()
54 final Socket socket = serverSocket.accept(); in await()
58 serverSocket.close(); in await()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java942 final ServerSocket serverSocket) throws Throwable { in doInteraction() argument
943 return doInteraction(clientConnection, serverSocket, OK_CODE, false, in doInteraction()
953 final ServerSocket serverSocket, final int responseCode) in doInteraction() argument
955 return doInteraction(clientConnection, serverSocket, responseCode, in doInteraction()
965 final ServerSocket serverSocket) throws Throwable { in doPersistentInteraction() argument
966 return doInteraction(clientConnection, serverSocket, OK_CODE, false, in doPersistentInteraction()
977 final ServerSocket serverSocket, final int responseCode) in doPersistentInteraction() argument
979 return doInteraction(clientConnection, serverSocket, responseCode, in doPersistentInteraction()
991 final ServerSocket serverSocket, final int responseCode, in doInteraction() argument
1000 ServerWork server = new ServerWork(serverSocket, responseCode, in doInteraction()
[all …]
/external/okhttp/okio/okio/src/test/java/okio/
DSocketTimeoutTest.java93 final ServerSocket serverSocket = new ServerSocket(0); in socket() local
94 serverSocket.setReuseAddress(true); in socket()
95 serverSocket.setReceiveBufferSize(SOCKET_BUFFER_SIZE); in socket()
101 socket = serverSocket.accept(); in socket()
117 Socket socket = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort()); in socket()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/
DJPDADebuggeeSynchronizer.java54 protected ServerSocket serverSocket = null; field in JPDADebuggeeSynchronizer
181 serverSocket = new ServerSocket(serverAddress.getPort(), 0, serverAddress.getAddress()); in bindServer()
196 serverSocket.setSoTimeout((int) timeout); in startServer()
198 clientSocket = serverSocket.accept(); in startServer()
242 if (serverSocket != null) in stop()
243 serverSocket.close(); in stop()
/external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/stub/
DStubFtpServer.java147 private ServerSocket serverSocket = null; field in StubFtpServer
236 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
243 serverSocket.setSoTimeout(500); in run()
246 Socket clientSocket = serverSocket.accept(); in run()
271 if (serverSocket != null) { in run()
272 serverSocket.close(); in run()
387 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
402 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/mockftpserver/tags/1.2.4/src/main/java/org/mockftpserver/stub/
DStubFtpServer.java147 private ServerSocket serverSocket = null; field in StubFtpServer
236 serverSocket = serverSocketFactory.createServerSocket(serverControlPort); in run()
243 serverSocket.setSoTimeout(500); in run()
246 Socket clientSocket = serverSocket.accept(); in run()
271 if (serverSocket != null) { in run()
272 serverSocket.close(); in run()
387 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
402 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()
/external/mockftpserver/tags/1.0/src/main/java/org/mockftpserver/stub/
DStubFtpServer.java147 private ServerSocket serverSocket = null; field in StubFtpServer
220 serverSocket = serverSocketFactory.createServerSocket(SERVER_CONTROL_PORT); in run()
222 serverSocket.setSoTimeout(500); in run()
225 Socket clientSocket = serverSocket.accept(); in run()
250 serverSocket.close(); in run()
356 boolean shutdown = !serverThread.isAlive() && serverSocket.isClosed(); in isShutdown()
371 return serverThread != null && serverThread.isAlive() && serverSocket != null; in isStarted()

1234