Searched refs:Socket (Results 1 - 25 of 57) sorted by relevance

123

/libcore/luni/src/main/java/javax/net/
H A DDefaultSocketFactory.java22 import java.net.Socket;
34 public Socket createSocket() throws IOException {
35 return new Socket();
39 public Socket createSocket(String host, int port) throws IOException, UnknownHostException {
40 return new Socket(host, port);
44 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
46 return new Socket(host, port, localHost, localPort);
50 public Socket createSocket(InetAddress host, int port) throws IOException {
51 return new Socket(host, port);
55 public Socket createSocke
[all...]
H A DSocketFactory.java22 import java.net.Socket;
62 public Socket createSocket() throws IOException {
84 public abstract Socket createSocket(String host, int port) throws IOException,
110 public abstract Socket createSocket(String host, int port, InetAddress localHost, int localPort)
127 public abstract Socket createSocket(InetAddress host, int port) throws IOException;
150 public abstract Socket createSocket(InetAddress address, int port, InetAddress localAddress,
/libcore/luni/src/main/java/java/net/
H A DSocketUtils.java24 * Helps us reuse more of Socket's implementation in SocketChannelImpl.SocketAdapter.
25 * It's not the case that we should set isCreated in the Socket(SocketImpl) constructor;
29 public static void setCreated(Socket s) {
/libcore/luni/src/test/java/libcore/java/net/
H A DServerSocketTest.java21 import java.net.Socket;
30 final Socket[] result = new Socket[1];
42 new Socket(ss.getInetAddress(), ss.getLocalPort());
H A DOldSocketTest.java31 import java.net.Socket;
46 Socket s;
61 s = new Socket();
73 // Test for method java.net.Socket(java.lang.String, int)
75 s = new Socket(InetAddress.getLocalHost().getHostName(), sport);
80 Socket s = null;
83 s = new Socket("0.0.0.0", ss.getLocalPort());
98 new Socket("unknown.host", 0);
103 Socket socket = null;
105 socket = new Socket(InetAddres
[all...]
H A DOldUnixSocketTest.java27 import java.net.Socket;
36 Socket pingClient = new Socket();
42 Socket worker = pingServer.accept();
87 Socket theSocket = new Socket();
106 Socket socket = new Socket("127.0.0.1", port, false);
H A DSocketTest.java26 import java.net.Socket;
40 Socket s = new Socket();
52 Socket s = new Socket();
73 new Socket("localhost", 80);
175 class MySocket extends Socket {
182 Socket s = new MySocket(impl);
189 // subclasses Socket, and whether or not to call SocketImpl.create is the main behavioral
205 Socket
[all...]
H A DOldSocketImplFactoryTest.java8 import java.net.Socket;
30 Socket.setSocketImplFactory(factory);
33 new Socket();
41 Socket.setSocketImplFactory(factory);
48 Socket.setSocketImplFactory(null);
65 Field [] fields = Socket.class.getDeclaredFields();
H A DConcurrentCloseTest.java24 import java.net.Socket;
36 * Test that Socket.close called on another thread interrupts a thread that's blocked doing
45 Socket s = ss.accept();
48 assertEquals("Socket closed", expected.getMessage());
54 Socket s = new Socket();
61 assertEquals("Socket closed", expected.getMessage());
69 Socket s = new Socket();
76 assertEquals("Socket close
[all...]
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DSSLSocketFactoryImpl.java6 import java.net.Socket;
17 public Socket createSocket(Socket socket, String s, int i, boolean flag)
30 socket = new Socket(s, i);
32 socket = new Socket(s, i);
50 public Socket createSocket(String arg0, int arg1) throws IOException, UnknownHostException {
59 public Socket createSocket(InetAddress arg0, int arg1) throws IOException {
68 public Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3) throws IOException, UnknownHostException {
77 public Socket createSocket(InetAddress arg0, int arg1, InetAddress arg2, int arg3) throws IOException {
/libcore/luni/src/main/java/javax/net/ssl/
H A DDefaultSSLSocketFactory.java22 import java.net.Socket;
50 public Socket createSocket(Socket s, String host, int port, boolean autoClose)
56 public Socket createSocket(String host, int port) throws IOException, UnknownHostException {
61 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
67 public Socket createSocket(InetAddress host, int port) throws IOException {
72 public Socket createSocket(InetAddress address, int port, InetAddress localAddress,
H A DX509KeyManager.java20 import java.net.Socket;
46 Socket socket);
64 Socket socket);
H A DSSLSocketFactory.java21 import java.net.Socket;
122 public abstract Socket createSocket(Socket s, String host, int port, boolean autoClose)
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
H A DSSLSocketFactoryTest.java20 import java.net.Socket;
62 * javax.net.ssl.SSLSocketFactory#createSocket(Socket s, String host, int port, boolean autoClose)
71 Socket st = new Socket("localhost", sport);
72 Socket s = sf.createSocket(st, "localhost", sport, false);
78 Socket st = new Socket("localhost", sport);
79 Socket s = sf.createSocket(st, "localhost", sport, true);
95 Socket s = sf.createSocket(new Socket(), "localhos
[all...]
H A DX509ExtendedKeyManagerTest.java20 import java.net.Socket;
41 * @see javax.net.ssl.X509KeyManager#chooseClientAlias(java.lang.String[], java.security.Principal[], java.net.Socket)
43 public String chooseClientAlias(String[] arg0, Principal[] arg1, Socket arg2) {
49 * @see javax.net.ssl.X509KeyManager#chooseServerAlias(java.lang.String, java.security.Principal[], java.net.Socket)
51 public String chooseServerAlias(String arg0, Principal[] arg1, Socket arg2) {
130 * java.security.Principal[], java.net.Socket)
133 Socket socket) {
139 * java.security.Principal[], java.net.Socket)
142 Socket socket) {
/libcore/crypto/src/main/java/org/conscrypt/
H A DOpenSSLSocketFactoryImpl.java21 import java.net.Socket;
56 public Socket createSocket() throws IOException {
63 public Socket createSocket(String host, int port) throws IOException, UnknownHostException {
67 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
76 public Socket createSocket(InetAddress host, int port) throws IOException {
80 public Socket createSocket(InetAddress address,
92 public Socket createSocket(Socket s, String host, int port, boolean autoClose)
H A DSSLSocketFactoryImpl.java22 import java.net.Socket;
83 * @see javax.net.ssl.SSLSocketFactory#createSocket(Socket,String,int,boolean)
86 public Socket createSocket(Socket s, String host, int port,
101 public Socket createSocket() throws IOException {
112 public Socket createSocket(String host, int port)
125 public Socket createSocket(String host, int port,
139 public Socket createSocket(InetAddress host, int port)
152 public Socket createSocket(InetAddress address, int port,
/libcore/support/src/test/java/tests/net/
H A DStuckServer.java23 import java.net.Socket;
34 private ArrayList<Socket> clients = new ArrayList<Socket>();
52 Socket client = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort());
81 for (Socket client : clients) {
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DSSLSocketFactoryTest.java22 import java.net.Socket;
55 Socket s = sf.createSocket(null, null, -1, false);
62 Socket ssl = sf.createSocket(new Socket(), null, -1, false);
71 Socket s = new Socket(host, port);
73 Socket ssl = sf.createSocket(s, null, -1, false);
/libcore/luni/src/test/java/libcore/javax/net/
H A DServerSocketFactoryTest.java25 import java.net.Socket;
67 Socket s = serverSocket.accept();
75 Socket socket = new Socket(InetAddress.getLocalHost(), serverSocket.getLocalPort());
93 List<Socket> backlog = new ArrayList<Socket>();
98 Socket socket = new Socket();
109 for (Socket socket : backlog) {
/libcore/dalvik/src/main/java/dalvik/system/
H A DSocketTagger.java20 import java.net.Socket;
52 public final void tag(Socket socket) throws SocketException {
58 public final void untag(Socket socket) throws SocketException {
/libcore/luni/src/main/java/libcore/net/url/
H A DFtpURLInputStream.java22 import java.net.Socket;
33 private Socket controlSocket;
35 public FtpURLInputStream(InputStream is, Socket controlSocket) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
H A DMockSocketChannel.java21 import java.net.Socket;
33 public Socket socket() {
/libcore/luni/src/main/java/java/util/logging/
H A DSocketHandler.java22 import java.net.Socket;
63 private Socket socket;
120 this.socket = new Socket(host, p);
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DForwardingX509ExtendedKeyManager.java19 import java.net.Socket;
38 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) {
43 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) {

Completed in 1335 milliseconds

123