Chromium Code Reviews| Index: lib/io/socket.dart |
| diff --git a/lib/io/socket.dart b/lib/io/socket.dart |
| index 097b8dd2c4a2dc45506275f25b7efe3e9dbf9cec..df2fb70bb83d668573475e8af31b50b92de763d1 100644 |
| --- a/lib/io/socket.dart |
| +++ b/lib/io/socket.dart |
| @@ -47,6 +47,15 @@ abstract class Socket { |
| int available(); |
| /** |
| + * Read up to [len] bytes from the socket. This function is |
| + * non-blocking and will only return data if data is available. The |
| + * number of bytes read can be less then [len] if fewer bytes are |
| + * available for immediate reading. If no data is available the |
|
Mads Ager (google)
2012/10/31 07:06:22
available the -> available
Søren Gjesse
2012/10/31 09:54:44
Done.
|
| + * [null] is returned. |
| + */ |
| + List<int> read([int len]); |
| + |
| + /** |
| * Reads up to [count] bytes of data from the socket and stores them into |
| * buffer after buffer offset [offset]. The number of successfully read |
| * bytes is returned. This function is non-blocking and will only read data |