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 "io.dart"; |
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 /** | 100 /** |
101 * The [InternetAddress] used to connect this socket. | 101 * The [InternetAddress] used to connect this socket. |
102 */ | 102 */ |
103 InternetAddress get address; | 103 InternetAddress get address; |
104 | 104 |
105 /** | 105 /** |
106 * The remote [InternetAddress] connected to by this socket. | 106 * The remote [InternetAddress] connected to by this socket. |
107 */ | 107 */ |
108 InternetAddress get remoteAddress; | 108 InternetAddress get remoteAddress; |
109 } | 109 } |
OLD | NEW |