OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 patch class ServerSocket { | 5 patch class ServerSocket { |
6 /* patch */ factory ServerSocket(String bindAddress, int port, int backlog) { | 6 /* patch */ factory ServerSocket(String bindAddress, int port, int backlog) { |
7 return new _ServerSocket(bindAddress, port, backlog); | 7 return new _ServerSocket(bindAddress, port, backlog); |
8 } | 8 } |
9 } | 9 } |
10 | 10 |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 } | 232 } |
233 } else { | 233 } else { |
234 doReportError(new SocketIOException(message)); | 234 doReportError(new SocketIOException(message)); |
235 } | 235 } |
236 } | 236 } |
237 | 237 |
238 int get hashCode => _hashCode; | 238 int get hashCode => _hashCode; |
239 | 239 |
240 bool _propagateError(Exception e) => false; | 240 bool _propagateError(Exception e) => false; |
241 | 241 |
242 abstract bool _isListenSocket(); | 242 bool _isListenSocket(); |
243 abstract bool _isPipe(); | 243 bool _isPipe(); |
244 | 244 |
245 // Is this socket closed. | 245 // Is this socket closed. |
246 bool _closed; | 246 bool _closed; |
247 | 247 |
248 // Dedicated ReceivePort for socket events. | 248 // Dedicated ReceivePort for socket events. |
249 ReceivePort _handler; | 249 ReceivePort _handler; |
250 | 250 |
251 // Poll event to handler map. | 251 // Poll event to handler map. |
252 List _handlerMap; | 252 List _handlerMap; |
253 | 253 |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 bool _seenFirstOutEvent = false; | 598 bool _seenFirstOutEvent = false; |
599 bool _pipe = false; | 599 bool _pipe = false; |
600 Function _clientConnectHandler; | 600 Function _clientConnectHandler; |
601 Function _clientWriteHandler; | 601 Function _clientWriteHandler; |
602 _SocketInputStream _inputStream; | 602 _SocketInputStream _inputStream; |
603 _SocketOutputStream _outputStream; | 603 _SocketOutputStream _outputStream; |
604 String _remoteHost; | 604 String _remoteHost; |
605 int _remotePort; | 605 int _remotePort; |
606 static SendPort _socketService; | 606 static SendPort _socketService; |
607 } | 607 } |
OLD | NEW |