Yanbiao Li
58ba3f9429
mgmt+tools: rework FacePersistency handling in faces/create and faces/update
...
1. enable changing persistency in faces/update command
2. reject faces/create request if the face already exists
3. nfdc changes to support the above
Change-Id: I659906da846608a42a768f08fb110ceee1a947a7
refs: #3232
2017-02-17 20:05:06 +08:00
Eric Newberry
f40551a061
face+mgmt: enable local fields through ProtocolFactory::createFace
...
refs #3731
Change-Id: I569dae59cda150ffcb1c0ff1d01a575d8850beca
2016-09-23 01:16:23 -07:00
Eric Newberry
4260241659
mgmt+face: move protocol-specific face creation checks into protocol factories
...
Also brought implementation of faces/create in line with design
refs #3731
Change-Id: I4f48079136b42c7fdbd4fdfba37116d2565f9dc1
2016-09-02 18:56:24 -07:00
Junxiao Shi
cde37ad608
face: face refactoring completion
...
* delete old Face
* rename LpFace as Face
* eliminate LpFaceWrapper and use new Face
refs #3172
Change-Id: I08c3a5dfb4cc1b9834b30cccd9ab634535d0608c
2015-12-24 01:02:05 -07:00
Junxiao Shi
c5401494fe
face: UdpChannel minor refactoring
...
refs #3172
Change-Id: I36d7a27df6d97e8fc1d8ec76e4e25b7987954cf8
2015-12-23 16:33:22 -07:00
Davide Pesavento
47ab029798
face: deduplicate callback typedefs between Channel and ProtocolFactory
...
This should have been part of commit 1d7e7afd38
Change-Id: I61623152180d4df288fc7dd3c225518e438d2bda
Refs: #3258
2015-11-04 19:49:58 +01:00
Yukai Tu
0a49d34342
face: UdpTransport
...
Change-Id: I54f43248785437cdf951d50099e46e9689962a75
Refs: #3168
2015-09-26 14:38:22 -07:00
Yukai Tu
375dcb0bd6
face: minimal UDP permanent face
...
Change-Id: I44f652b95c911667107fd30829c7ce6e5acab706
Refs: #2989
2015-08-18 15:04:21 -07:00
Yukai Tu
731f0d70fa
face: replace isOnDemand with FacePersistency
...
Change-Id: Ie6995b2d03bbb90faad158de2b055f72dd9ba73d
Refs: #2989
2015-07-09 07:46:52 -07:00
Davide Pesavento
292e5e1436
face: use move semantics for sockets where possible
...
Change-Id: I2af595073f862c570c1ce0dcb3717f3d2b9cfd71
Refs: #2613
2015-03-17 21:32:49 -07:00
Davide Pesavento
6ad890a098
face: Stop using shared_ptr to manage acceptors
...
This commit also includes a major cleanup of all channels.
Change-Id: I10db9709e0cba6a0691a86482c60b5dbb2956f68
Refs: #2613
2015-03-11 22:04:40 +01:00
Alexander Afanasyev
90c20face8
face: Properly handle error conditions in UdpChannel::newPeer
...
Change-Id: Ia34eb738a6cc8977bbcba91f0055fe4623df4d32
Refs: #2516
2015-02-15 12:43:57 -08:00
Alexander Afanasyev
baba2535e1
face: Remove Tcp|UdpChannel::connect overloads that perform DNS resolution
...
Change-Id: Ib5da2a43d1e33654940aa42f568b6a604c171e3e
Refs: #2422
2015-02-15 12:43:57 -08:00
Alexander Afanasyev
319f2c8dbc
src: Update copyright notices for files modified in 2015
...
Change-Id: Ia52e6e891a06fcc7ace06eafd2fffecd7bd55a95
Refs: #2352
2015-01-19 21:45:21 -08:00
Junxiao Shi
c099ddb587
face: replace EventEmitter usage with Signal
...
refs #2300
Change-Id: I17d0d65d2c474b17dd9f23f271a6144b0b4fbc07
2015-01-06 20:50:15 -07:00
Alexander Afanasyev
c5173de511
face: Don't crash when attempting to create UdpFace over a half-working connection
...
Change-Id: Ib32128074f8dfe834fde033517325f994d648767
Refs: #2311
2014-12-18 13:12:42 -08:00
Junxiao Shi
a1937bf54c
core: use FaceUri from ndn-cxx
...
refs #2143
Change-Id: Ida06daf406f941a699c9f1013450951db3cd28e9
2014-11-14 12:44:55 -08:00
Junxiao Shi
39cd633013
face: use MAX_NDN_PACKET_SIZE constant from ndn-cxx
...
refs #2099
Change-Id: I46331436e0605f77f6b6ac7b49d50fe1570817b8
2014-11-07 04:20:15 -08:00
Junxiao Shi
5dd26c3ef8
face: increment link layer byte counters in StreamFace and DatagramFace
...
refs #1766
Change-Id: I69377fa561ae1ee845808aa02ae1b85b1771899e
2014-07-24 15:55:31 -07:00
Davide Pesavento
a75305892c
face: remove pointless method UdpFace::handleFirstReceive
...
Simply call DatagramFace::receiveDatagram directly.
Change-Id: Icec976fb9f4a008d08ece56c28ac652ea615bc76
2014-06-30 23:14:53 -07:00
Alexander Afanasyev
e515f0a989
face: Moving idle UdpFace closing logic to UdpFace class
...
Change-Id: Ia7310fa18681f17d93c8214ce744da909fea7022
Refs: #1686
2014-06-30 19:54:33 -07:00
Steve DiBenedetto
2aa4eca578
face: prevent creation of duplicate tcp/udp faces due to async calls
...
refs: #1680
Change-Id: I0e685d6bde1f6745902c86f782d41c9070aecb21
2014-06-20 19:37:20 -07:00
Alexander Afanasyev
f6980284e6
src: Remove unnecessary uses of boost::cref in make_shared and replace boost::cref/boost::ref with just cref/ref
...
In some cases, due to argument-dependent lookup, it is necessary to use
ndn::ref, instead of just ref.
Change-Id: I682180a007609535855f77511b49622154ad4f11
Refs: #1591
2014-05-15 09:52:28 -07:00
Alexander Afanasyev
9bcbc7c130
docs: Update of copyright and license statement in all .hpp and .cpp files
...
Change-Id: I4082db67f2390482615a780d91a513f09d57a9a4
Refs: #1266
2014-04-07 09:18:25 -07:00
Steve DiBenedetto
ca53ac6b00
face, mgmt: improve face creation failure and bad URI handling
...
Prevent creation of faces to endpoints owned by NFD instance
Prevent creation of UDP broadcast faces (255.255.255.255 and
those belonging to machine's interfaces) in response to
face creation command
Sanity check configuration file port numbers in face manager
refs: #1414 , #1427
Change-Id: Ia3f0a9337f3d97c34388773eab05bc39ad6dd804
2014-04-06 10:54:20 -07:00
Alexander Afanasyev
355c066fe1
face: Implementing new "isOnDemand" flag
...
This flags replaces isPermanent flag in datagram faces, but with the
reversed logic (isPermanent = !isOnDemand)
Change-Id: I37ba604e5f105ca95a79a08b8cfc3d640df8b412
Refs: #1376
2014-03-20 18:10:44 -07:00
Alexander Afanasyev
eb3197fa35
all: Update code to compile with latest time-related changes in ndn-cpp-dev library
...
Change-Id: I7e859989c833001f49b286d4a9917f4dc740b4a4
2014-03-18 17:34:12 -07:00
Alexander Afanasyev
eee71fd6bc
face: Disable IPv4-mapping of IPv6 addresses in TCP and UDP channels
...
Change-Id: I9997ed4114b9708778ee55f82f567264dede6798
Refs: #1352
2014-03-13 17:49:00 -07:00
Giulio Grassi
69871f03d3
face: close idle Datagram faces
...
refs #1281
Change-Id: Ifc766964f653d3991b55d76361c8b9bbe5d630cf
2014-03-11 15:54:48 -07:00
Alexander Afanasyev
6f5ff63f86
face: Fixing a bug in UdpChannel with missing async_receive
...
In cases when UdpChannel dispatches received UDP packet to a newly
created UdpFace, the Channel failed to resume reception of datagram on
the channel.
Change-Id: If876dacc237bd0a6a660d4d88581959782dc349b
2014-03-08 20:27:43 +00:00
Junxiao Shi
61e3cc51ed
faces: Channel base class
...
refs #1261
Change-Id: If17037c4802cb6ccec0201c3bff7fc4b6db41c6a
2014-03-05 11:56:10 -07:00
Giulio Grassi
624f6c610f
face: UDP face/channel/factory
...
Change-Id: I4683b45378637133982efd23edd16a0c35148948
refs #1189
2014-03-02 13:29:10 +01:00