jdk/src/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java
changeset 18212 22f8c33b0690
parent 10137 d92637d3d673
child 19607 bee007586d06
equal deleted inserted replaced
18211:74aeb4741e3d 18212:22f8c33b0690
   135         return handle;
   135         return handle;
   136     }
   136     }
   137 
   137 
   138     // invoked by WindowsAsynchronousServerSocketChannelImpl when new connection
   138     // invoked by WindowsAsynchronousServerSocketChannelImpl when new connection
   139     // accept
   139     // accept
   140     void setConnected(SocketAddress localAddress, SocketAddress remoteAddress) {
   140     void setConnected(InetSocketAddress localAddress,
       
   141                       InetSocketAddress remoteAddress)
       
   142     {
   141         synchronized (stateLock) {
   143         synchronized (stateLock) {
   142             state = ST_CONNECTED;
   144             state = ST_CONNECTED;
   143             this.localAddress = localAddress;
   145             this.localAddress = localAddress;
   144             this.remoteAddress = remoteAddress;
   146             this.remoteAddress = remoteAddress;
   145         }
   147         }