Files
sdk/runtime/bin/socket_stream.dart
T
ager@google.com 4605b5ea33 Minor changes to the dart:io library files.
- Split some of the streams into an interface and an implementation file.
- Add documentation comments where missing.

R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9289042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3616 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-26 10:03:19 +00:00

27 lines
787 B
Dart

// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* [SocketInputStream] makes it possible to stream over data received
* from a [Socket].
*/
interface SocketInputStream extends InputStream default _SocketInputStream {
/**
* Create a [SocketInputStream] for streaming from a [Socket].
*/
SocketInputStream(Socket socket);
}
/**
* [SocketOutputStream] makes it possible to stream data to a
* [Socket].
*/
interface SocketOutputStream extends OutputStream default _SocketOutputStream {
/**
* Create a [SocketOutputStream] for streaming to a [Socket].
*/
SocketOutputStream(Socket socket);
}