diff options
author | Shawn Quereshi <shawnq@google.com> | 2020-10-30 12:08:46 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-12 20:37:38 +0000 |
commit | 90bf4ba461d154b76ea69c8dff56dfd3e75b08fa (patch) | |
tree | 64f9a840eb9b8be46e7933fe8b83a216e0bc7c61 /cast | |
parent | d3ffc411d154c9dc803005873f3be8e4000a666d (diff) | |
download | openscreen-90bf4ba461d154b76ea69c8dff56dfd3e75b08fa.tar.gz |
Internal change
PiperOrigin-RevId: 339915271
Change-Id: I59caf1e22f011b1de6a37145a84fbd88097abc87
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2533504
Reviewed-by: Ryan Keane <rwkeane@google.com>
Commit-Queue: Ryan Keane <rwkeane@google.com>
Diffstat (limited to 'cast')
-rw-r--r-- | cast/cast_core/api/web/message_channel.proto | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cast/cast_core/api/web/message_channel.proto b/cast/cast_core/api/web/message_channel.proto index 57778400..68c41c62 100644 --- a/cast/cast_core/api/web/message_channel.proto +++ b/cast/cast_core/api/web/message_channel.proto @@ -13,7 +13,7 @@ message Message { ChannelStatus error = 3; } - MessagePortDescriptor sender = 4; + MessageChannelDescriptor channel = 4; } message MessageChannelDescriptor { @@ -29,6 +29,12 @@ message MessageResponse { bool result = 1; } +// MessagePortDescriptor is used to transfer ownership of a port across the +// MessageChannel. After port transfer, Messages may be sent to and from the +// port by using same |channel|, which must be unique to each entangled +// port pair. Pairs from Cast Core start with |channel_id| of 0x80000000 and +// increment by one for each pair; pairs generated by a runtime should start +// at 0x0 and increment by one to avoid collisions. message MessagePortDescriptor { MessageChannelDescriptor channel = 1; uint32 sequence_number = 2; @@ -41,4 +47,4 @@ message ChannelStatus { } Status status = 1; -}
\ No newline at end of file +} |