src/java.base/windows/classes/sun/nio/ch/PipeImpl.java
changeset 48896 1e358cc5af98
parent 47216 71c04702a3d5
equal deleted inserted replaced
48895:7a1916641c0c 48896:1e358cc5af98
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   108                     // Create secret with a backing array.
   108                     // Create secret with a backing array.
   109                     ByteBuffer secret = ByteBuffer.allocate(NUM_SECRET_BYTES);
   109                     ByteBuffer secret = ByteBuffer.allocate(NUM_SECRET_BYTES);
   110                     ByteBuffer bb = ByteBuffer.allocate(NUM_SECRET_BYTES);
   110                     ByteBuffer bb = ByteBuffer.allocate(NUM_SECRET_BYTES);
   111 
   111 
   112                     // Loopback address
   112                     // Loopback address
   113                     InetAddress lb = InetAddress.getByName("127.0.0.1");
   113                     InetAddress lb = InetAddress.getLoopbackAddress();
   114                     assert(lb.isLoopbackAddress());
   114                     assert(lb.isLoopbackAddress());
   115                     InetSocketAddress sa = null;
   115                     InetSocketAddress sa = null;
   116                     for(;;) {
   116                     for(;;) {
   117                         // Bind ServerSocketChannel to a port on the loopback
   117                         // Bind ServerSocketChannel to a port on the loopback
   118                         // address
   118                         // address