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

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

Issue 1293533002: DO NOT SUBMIT: Unix domain sockets. From CL 1061283003. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Added Mac OS fix Created 5 years, 4 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
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | tests/standalone/io/socket_bind_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/socket.dart
diff --git a/sdk/lib/io/socket.dart b/sdk/lib/io/socket.dart
index a759598def0bc35786ffb83ada29ac917d265fdc..5516f00dae7ee7c4c00bc5532505360b2a5f9538 100644
--- a/sdk/lib/io/socket.dart
+++ b/sdk/lib/io/socket.dart
@@ -144,6 +144,13 @@ abstract class InternetAddress {
}
+class UnixDomainAddress {
+ final String path;
+ bool get isLoopback => false; // HACK.
+ UnixDomainAddress(this.path);
+}
+
+
/**
* A [NetworkInterface] represent an active network interface on the current
* system. It contains a list of [InternetAddress]s, that's bound to the
@@ -759,7 +766,7 @@ abstract class RawDatagramSocket extends Stream<RawSocketEvent> {
class SocketException implements IOException {
final String message;
final OSError osError;
- final InternetAddress address;
+ final /* InternetAddress or UnixDomainAddress */ address;
final int port;
const SocketException(this.message, {this.osError, this.address, this.port});
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | tests/standalone/io/socket_bind_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698