OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 part of "dart:io"; | 5 part of dart.io; |
6 | 6 |
7 /** | 7 /** |
8 * A low-level class for communicating synchronously over a TCP socket. | 8 * A low-level class for communicating synchronously over a TCP socket. |
9 * | 9 * |
10 * Warning: [RawSynchronousSocket] should probably only be used to connect to | 10 * Warning: [RawSynchronousSocket] should probably only be used to connect to |
11 * 'localhost'. The operations below will block the calling thread to wait for | 11 * 'localhost'. The operations below will block the calling thread to wait for |
12 * a response from the network. The thread can process no other events while | 12 * a response from the network. The thread can process no other events while |
13 * waiting for these operations to complete. [RawSynchronousSocket] is not | 13 * waiting for these operations to complete. [RawSynchronousSocket] is not |
14 * suitable for applications that require high performance or asynchronous I/O | 14 * suitable for applications that require high performance or asynchronous I/O |
15 * such as a server. Instead such applications should use the non-blocking | 15 * such as a server. Instead such applications should use the non-blocking |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 /** | 99 /** |
100 * The [InternetAddress] used to connect this socket. | 100 * The [InternetAddress] used to connect this socket. |
101 */ | 101 */ |
102 InternetAddress get address; | 102 InternetAddress get address; |
103 | 103 |
104 /** | 104 /** |
105 * The remote [InternetAddress] connected to by this socket. | 105 * The remote [InternetAddress] connected to by this socket. |
106 */ | 106 */ |
107 InternetAddress get remoteAddress; | 107 InternetAddress get remoteAddress; |
108 } | 108 } |
OLD | NEW |