Feature #3169
closedWebSocketTransport
Description
Implement WebSocketTransport
for use with LinkService.
The WebSocketTransport
is a subclass of Transport
that communicates with a remote forwarder over a WebSocket.
WebSocketTransport
is local if RemoteUri contains a loopback address; otherwise it's non-local.WebSocketTransport
is always on-demand, because it's application connecting to NFD. There is no persistent or permanentWebSocketTransport
.
After implementing WebSocketTransport
:
- change
WebSocketChannel
to initialize anLpFace(GenericLinkService+WebSocketTransport)
in place ofWebSocketFace
- delete old
WebSocketFace
Updated by Junxiao Shi about 9 years ago
- Blocked by Task #3088: Refactor Face as LinkService+Transport added
Updated by Junxiao Shi about 9 years ago
- Assignee set to Yukai Tu
Changes for this issue should be uploaded to feature-lp
branch.
Most code can be adapted from old WebSocketFace
.
Initialization logic is partially designed in #3088 note-20.
Updated by Junxiao Shi about 9 years ago
- Blocks Feature #3160: Permit scope=local in WebSocketTransport added
Updated by Junxiao Shi about 9 years ago
- Blocks Task #3172: Refactor Face: completion added
Updated by Junxiao Shi about 9 years ago
20151006 conference call decides: Change for this issue should be uploaded to master
branch.
This is not a breaking change. No notice is needed.
Updated by Yukai Tu about 9 years ago
I may need some help about how to judge the loopback in WebSocket. Thanks!
Updated by Davide Pesavento about 9 years ago
- Status changed from In Progress to Code review
- % Done changed from 0 to 80
Updated by Wentao Shang about 9 years ago
Yukai Tu wrote:
I may need some help about how to judge the loopback in WebSocket. Thanks!
I think the safest way is to construct a boost::asio::ip::address from FaceUri and use is_loopback() interface.
Updated by Junxiao Shi about 9 years ago
- Status changed from Code review to Closed
- % Done changed from 80 to 100