equal
deleted
inserted
replaced
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 } |