Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Unified Diff: sdk/lib/io/socket.dart

Issue 984403004: Fixed a number of bugs on RawSocket and Socket (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/io/socket.dart
diff --git a/sdk/lib/io/socket.dart b/sdk/lib/io/socket.dart
index d703c8de08ddbc6f1487429ce5ff83c7ff66ac89..9152beebda0ea1b0457906ca209e4f44b0b52ade 100644
--- a/sdk/lib/io/socket.dart
+++ b/sdk/lib/io/socket.dart
@@ -763,6 +763,7 @@ class SocketException implements IOException {
final int port;
const SocketException(this.message, {this.osError, this.address, this.port});
+ const SocketException.closed() : message = 'Socket has been closed';
String toString() {
StringBuffer sb = new StringBuffer();

Powered by Google App Engine
This is Rietveld 408576698