dart-sdk/runtime
Zichang Guo ed83a28d3e [dart:io] support Unix domain communications
Support Unix domain sockets communication on Linux, MacOS and Android.

Changes:
1. Add a field for InternetAddressType named unix.
2. Constructor of InternetAddress gains one more optional field: type. InternetAddress(String address, {InternetAddressType type});
3. Add another constructor to InternetAddress which taks raw address/path for ip/unix addresses as an argument. InternetAddress.fromRawAddress(Uint8List rawAddress, {InternetAddressType type});

The operation for unix domain sockets communication is basically the same as normal sockets except an InternetAddress with type unix should be passed.

Change-Id: I6a1135bbdd7f4e4fc745ccf8f95dec5272b6839b
Bug: https://github.com/dart-lang/sdk/issues/21403
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125932
Commit-Queue: Zichang Guo <zichangguo@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2020-03-23 03:51:40 +00:00
..
bin [dart:io] support Unix domain communications 2020-03-23 03:51:40 +00:00
docs [vm/compiler] Tests, cleanups and fixes to Type Testing Stubs. 2020-03-17 14:11:02 +00:00
include [VM/NNBD] - Make the null safety flag be isolate specific. 2020-03-20 02:09:29 +00:00
lib Add bool.hasEnvironment constructor and tests 2020-03-16 11:17:58 +00:00
llvm_codegen [BUILD] - Format gn files, this is being done to ensure the unfork CL 2020-03-10 21:56:11 +00:00
observatory [ VM / Service ] Remove package:test timeout for VM service tests 2020-03-21 18:39:36 +00:00
platform [vm] Require explicit loads and stores when using AcqRelAtomic. 2020-03-19 16:19:59 +00:00
tests/vm Make StackTrace generally not nullable in migrated NNBD library. 2020-03-19 23:31:30 +00:00
third_party
tools [ dartfuzz ] Regenerate type table now that TypeError does not implement AssertionError 2020-02-24 21:49:08 +00:00
vm [vm] Increase precision of MSAN unpoisoning during deopt. 2020-03-21 00:36:09 +00:00
.clang-tidy
.gitignore
BUILD.gn [BUILD] - Format gn files, this is being done to ensure the unfork CL 2020-03-10 21:56:11 +00:00
codereview.settings
configs.gni [VM/runtime] - Remove DART_NO_SNAPSHOT 2020-01-08 18:56:21 +00:00
CPPLINT.cfg
PRESUBMIT.py [Presubmit] Fixes presubmit for breaking API change. 2020-03-03 13:30:20 +00:00
runtime_args.gni [vm] DBC is obsolete. Remove dead code. 2019-10-27 18:18:29 +00:00