src/java.base/windows/classes/java/net/PlainSocketImpl.java
changeset 49249 92cca24c8807
parent 47216 71c04702a3d5
child 49833 06a6ae39d892
equal deleted inserted replaced
49248:15a0e60c8b97 49249:92cca24c8807
     1 /*
     1 /*
     2  * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2007, 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
    41  * TwoStacksPlainSocketImpl and delegate to it.
    41  * TwoStacksPlainSocketImpl and delegate to it.
    42  *
    42  *
    43  * @author Chris Hegarty
    43  * @author Chris Hegarty
    44  */
    44  */
    45 
    45 
    46 class PlainSocketImpl extends AbstractPlainSocketImpl
    46 class PlainSocketImpl extends AbstractPlainSocketImpl {
    47 {
       
    48     private AbstractPlainSocketImpl impl;
    47     private AbstractPlainSocketImpl impl;
    49 
    48 
    50     /* java.net.preferIPv4Stack */
    49     /* java.net.preferIPv4Stack */
    51     private static final boolean preferIPv4Stack;
    50     private static final boolean preferIPv4Stack;
    52 
    51 
   252 
   251 
   253     void releaseFD() {
   252     void releaseFD() {
   254         impl.releaseFD();
   253         impl.releaseFD();
   255     }
   254     }
   256 
   255 
   257     public boolean isConnectionReset() {
   256     boolean isConnectionReset() {
   258         return impl.isConnectionReset();
   257         return impl.isConnectionReset();
   259     }
   258     }
   260 
   259 
   261     public boolean isConnectionResetPending() {
   260     void setConnectionReset() {
   262         return impl.isConnectionResetPending();
       
   263     }
       
   264 
       
   265     public void setConnectionReset() {
       
   266         impl.setConnectionReset();
   261         impl.setConnectionReset();
   267     }
       
   268 
       
   269     public void setConnectionResetPending() {
       
   270         impl.setConnectionResetPending();
       
   271     }
   262     }
   272 
   263 
   273     public boolean isClosedOrPending() {
   264     public boolean isClosedOrPending() {
   274         return impl.isClosedOrPending();
   265         return impl.isClosedOrPending();
   275     }
   266     }