Searched defs:socket (Results 1 - 25 of 76) sorted by relevance

1234

/openjdk7/jdk/test/java/net/DatagramSocket/SetDatagramSocketImplFactory/
H A DADatagramSocket.java46 // get a datagram socket
47 DatagramSocket socket = new DatagramSocket();
53 socket.send(packet);
57 socket.receive(packet);
63 socket.close();
69 protected DatagramSocket socket = null; field in class:QuoteServerThread
77 socket = new DatagramSocket(4445);
86 socket.receive(packet);
97 socket.send(packet);
101 socket
[all...]
/openjdk7/jdk/test/java/net/DatagramSocket/
H A DTestAfterClose.java39 DatagramSocket socket = new DatagramSocket();
40 socket.connect(InetAddress.getLoopbackAddress(), 5001);
41 test(socket, true);
43 socket = new DatagramSocket();
44 test(socket, false);
55 static void test(DatagramSocket socket, boolean connected) throws IOException { argument
57 int socketPort = socket.getPort();
58 InetAddress socketInetAddress = socket.getInetAddress();
59 SocketAddress socketRemoteSocketAddress = socket.getRemoteSocketAddress();
62 socket
[all...]
/openjdk7/jdk/test/java/net/Socket/
H A DTestAfterClose.java40 Socket socket = new Socket("localhost", ss.getLocalPort());
43 test(socket);
53 static void test(Socket socket) throws IOException { argument
55 int socketPort = socket.getPort();
56 InetAddress socketInetAddress = socket.getInetAddress();
57 SocketAddress socketRemoteSocketAddress = socket.getRemoteSocketAddress();
58 int socketLocalPort = socket.getLocalPort();
61 socket.close();
63 if (socketPort != socket.getPort()) {
68 if (!socket
[all...]
H A DSocksConnectTimeout.java73 Socket socket = null;
75 socket = new Socket(proxy);
76 connectWithTimeout(socket);
85 close(socket);
89 static void connectWithTimeout(Socket socket) throws IOException { argument
90 socket.connect(new InetSocketAddress(InetAddress.getLocalHost(), 1234), 500);
/openjdk7/jdk/src/share/classes/javax/net/ssl/
H A DX509ExtendedTrustManager.java65 * If the <code>socket</code> parameter is an instance of
68 * man-in-the-middle attacks, the address that the <code>socket</code>
73 * If the <code>socket</code> parameter is an instance of
78 * algorithm constraints in place on this socket.
82 * @param socket the socket used for this connection. This parameter
97 String authType, Socket socket) throws CertificateException;
113 * If the <code>socket</code> parameter is an instance of
116 * man-in-the-middle attacks, the address that the <code>socket</code>
121 * If the <code>socket</cod
96 checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) argument
144 checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) argument
[all...]
H A DX509KeyManager.java37 * socket.
39 * During secure socket negotiations, implentations
57 * socket given the public key type and the list of
70 * socket given the public key type and the list of
77 * @param socket the socket to be used for this connection. This
80 * to any socket.
85 Socket socket);
89 * socket given the public key type and the list of
102 * socket give
84 chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) argument
115 chooseServerAlias(String keyType, Principal[] issuers, Socket socket) argument
[all...]
/openjdk7/jdk/test/java/nio/channels/Selector/
H A DByteServer.java38 private Socket socket; field in class:ByteServer
56 socket = serversocket.accept();
57 socket.getOutputStream().write(new byte[bytecount]);
58 socket.getOutputStream().flush();
70 socket.close();
/openjdk7/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/SSLSocketImpl/
H A DAsyncSSLSocketClose.java32 * @summary Issue with socket.close() for ssl sockets when poweroff on
42 SSLSocket socket; field in class:AsyncSSLSocketClose
75 socket = (SSLSocket)sslsf.createSocket("localhost",
89 socket.setSoLinger(true, 10);
91 socket.close();
92 System.out.println("ssl socket get closed");
108 OutputStream os = socket.getOutputStream();
H A DNotifyHandshakeTestHeyYou.java35 SSLSocket socket; field in class:NotifyHandshakeTestHeyYou
39 public NotifyHandshakeTestHeyYou(SSLSocket socket) { argument
40 this.socket = socket;
41 socket.addHandshakeCompletedListener(this);
/openjdk7/jdk/src/share/classes/java/nio/channels/
H A DServerSocketChannel.java38 * <p> A server-socket channel is created by invoking the {@link #open() open}
40 * pre-existing {@link ServerSocket}. A newly-created server-socket channel is
42 * method of an unbound server-socket channel will cause a {@link NotYetBoundException}
43 * to be thrown. A server-socket channel can be bound by invoking one of the
47 * setOption} method. Server-socket channels support the following options:
56 * <td> The size of the socket receive buffer </td>
66 * <p> Server-socket channels are safe for use by multiple concurrent threads.
87 * Opens a server-socket channel.
94 * <p> The new channel's socket is initially unbound; it must be bound to a
95 * specific address via one of its socket'
217 public abstract ServerSocket socket(); method in class:ServerSocketChannel
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/hat/internal/server/
H A DHttpReader.java36 * Reads a single HTTP query from a socket, and starts up a QueryHandler
63 private Socket socket; field in class:HttpReader
69 this.socket = s;
77 in = new BufferedInputStream(socket.getInputStream());
80 socket.getOutputStream())));
211 socket.close();
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/NetworkConnection/src/com/sun/hotspot/igv/connection/
H A DClient.java47 private Socket socket; field in class:Client
51 public Client(Socket socket, JTextField networkTextField, GroupCallback callback) { argument
53 this.socket = socket;
60 InputStream inputStream = socket.getInputStream();
64 socket.getOutputStream().write('y');
75 socket.getOutputStream().write('n');
78 socket.close();
88 socket.getOutputStream().write('y');
91 socket
[all...]
/openjdk7/jdk/test/sun/security/ssl/javax/net/ssl/NewAPIs/SSLEngine/
H A DMyX509ExtendedKeyManager.java43 Socket socket) {
45 return akm.chooseClientAlias(keyType, issuers, socket);
54 Socket socket) {
56 return akm.chooseServerAlias(keyType, issuers, socket);
42 chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) argument
53 chooseServerAlias(String keyType, Principal[] issuers, Socket socket) argument
H A DMyX509KeyManager.java43 Socket socket) {
45 return km.chooseClientAlias(keyType, issuers, socket);
54 Socket socket) {
56 return km.chooseServerAlias(keyType, issuers, socket);
42 chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) argument
53 chooseServerAlias(String keyType, Principal[] issuers, Socket socket) argument
/openjdk7/jdk/src/share/classes/sun/rmi/transport/proxy/
H A DHttpReceiveSocket.java41 * the HTTP header. Closing this socket will do this.
49 * This socket can only be used to process one POST and reply to it.
50 * Another message would be received on a newly accepted socket anyway.
60 * @param socket the pre-existing socket to use
61 * @param in the InputStream to use for this socket (can be null)
62 * @param out the OutputStream to use for this socket (can be null)
64 public HttpReceiveSocket(Socket socket, InputStream in, OutputStream out) argument
67 super(socket, in, out);
70 socket
[all...]
H A DWrappedSocket.java43 /** the underlying concrete socket */
44 protected Socket socket; field in class:WrappedSocket
46 /** the input stream to return for socket */
49 /** the output stream to return for socket */
55 * underlying socket to peek at the beginning of the input with a
56 * BufferedInputStream and determine which kind of socket
58 * @param socket the pre-existing socket to use
62 public WrappedSocket(Socket socket, InputStream in, OutputStream out) argument
66 this.socket
[all...]
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/transport/
H A DDefaultSocketFactoryImpl.java62 serverSocket = serverSocketChannel.socket();
75 Socket socket = null;
79 socket = socketChannel.socket();
81 socket = new Socket(inetSocketAddress.getHostName(),
86 socket.setTcpNoDelay(true);
88 return socket;
93 Socket socket)
97 socket.setTcpNoDelay(true);
91 setAcceptedSocketOptions(Acceptor acceptor, ServerSocket serverSocket, Socket socket) argument
/openjdk7/corba/src/share/classes/com/sun/corba/se/spi/transport/
H A DORBSocketFactory.java54 Socket socket)
52 setAcceptedSocketOptions(Acceptor acceptor, ServerSocket serverSocket, Socket socket) argument
/openjdk7/jdk/src/share/classes/java/net/
H A DSocketOutputStream.java51 private Socket socket = null; field in class:SocketOutputStream
57 * @param impl the socket output stream inplemented
62 socket = impl.getSocket();
70 * returns <code>null</code> since it is a socket based stream.</p>
82 * Writes to the socket.
93 * Writes to the socket with appropriate locking of the
132 * Writes a byte to the socket.
142 * Writes the contents of the buffer <i>b</i> to the socket.
171 if (socket != null) {
172 if (!socket
[all...]
H A DSocketInputStream.java53 private Socket socket = null; field in class:SocketInputStream
59 * @param impl the implemented socket input stream
64 socket = impl.getSocket();
72 * returns <code>null</code> since it is a socket based stream.</p>
85 * the received socket primitive.
101 * Reads into a byte array data from the socket.
166 * buffered on the socket
186 * If we get here we are at EOF, the socket has been closed,
203 * Reads a single byte from the socket.
257 if (socket !
[all...]
/openjdk7/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/www/protocol/https/HttpsClient/
H A DMyKeyManager.java69 * socket given the public key type and the list of
73 Socket socket) {
79 * socket given the public key type and the list of
92 * socket given the public key type and the list of
96 Principal[] issuers, Socket socket) {
102 * socket given the public key type and the list of
72 chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) argument
95 chooseServerAlias(String keyType, Principal[] issuers, Socket socket) argument
/openjdk7/jdk/test/sun/security/ssl/javax/net/ssl/NewAPIs/
H A DKeyManagerTrustManager.java62 Socket socket) {
66 Socket socket) {
61 chooseServerAlias(String keyType, Principal[] issuers, Socket socket) argument
65 chooseClientAlias(String [] keyType, Principal[] issuers, Socket socket) argument
/openjdk7/jdk/src/windows/native/sun/nio/ch/
H A DWindowsAsynchronousServerSocketChannelImpl.c71 s = socket(AF_INET, SOCK_STREAM, 0);
73 JNU_ThrowIOExceptionWithLastError(env, "socket failed");
136 jlong socket)
138 SOCKET s = (SOCKET)jlong_to_ptr(socket);
135 Java_sun_nio_ch_WindowsAsynchronousServerSocketChannelImpl_closesocket0(JNIEnv* env, jclass this, jlong socket) argument
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/
H A DServer.java88 private Server(Socket socket) throws IOException, UnsupportedEncodingException { argument
89 this(new BufferedReader(new InputStreamReader(socket.getInputStream(), "utf-8")),
90 socket.getOutputStream(),
179 ServerSocket socket = new ServerSocket(0xcafe, -1, null);
181 pool.execute(new Server(socket.accept()));
/openjdk7/jdk/src/share/classes/sun/rmi/transport/tcp/
H A DTCPConnection.java40 private Socket socket; field in class:TCPConnection
54 socket = s;
70 * Constructor used when socket is available, but not underlying
84 out = new BufferedOutputStream(socket.getOutputStream());
103 in = new BufferedInputStream(socket.getInputStream());
117 * If the socket implements RMISocketInfo, then we can query it about
123 if ((socket != null) && (socket instanceof RMISocketInfo))
124 return ((RMISocketInfo) socket).isReusable();
221 if (socket !
[all...]

Completed in 34 milliseconds

1234