PR Copied from https://github.com/eric135/YaNFD/pull/1.
Changes:
In ndn/uri.go, GetURIType() would return type uriType, which wasn't visible outside the module. To make this method functional, the uriType has been renamed to URIType.
Added Unicast TCP face to face/unicast-tcp-transport.go.
Added associated TCP logic in ndn/uri.go.
Potentially Harmful Decisions:
TCP is connection based, so connections can be explicitly closed (unlike UDP). This raises the question of whether to give each interface an expirationTime for TCP Unicast. I've opted to add an expiration time, with a default value of one hour. This mirrors the current settings for UDP, but not Ethernet.
PR Copied from
https://github.com/eric135/YaNFD/pull/1
.Changes:
Potentially Harmful Decisions: