Commit Graph
20 Commits
Author SHA1 Message Date
Alexander Afanasyev 53a6fd33b9 face: Implementing forgotten isListening() feature in TcpChannel
Change-Id: Idfcd8337d16b414d2f739f936660dffdce413729
2014-03-24 17:01:45 -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
Alexander Afanasyev 69a342712d face: Fix bug when TcpChannel::handleSuccessfulConnect seem to be called before channel is acutally connected
Change-Id: Ibf50da48f01137649ffd90e8f6d16c4f03c87a2b
Refs: #1344
2014-03-08 01:58:47 -08:00
Junxiao Shi 61e3cc51ed faces: Channel base class
refs #1261

Change-Id: If17037c4802cb6ccec0201c3bff7fc4b6db41c6a
2014-03-05 11:56:10 -07:00
Alexander Afanasyev 5f1ec25245 face: Minor updates of TCP faces
Change-Id: I9a11fb4b2cd1aaaa670313cab0b08f097554e1fc
2014-02-28 16:12:46 -08:00
Davide Pesavento 855bf2999c face: Fix minor typo in TcpChannel method name.
Change-Id: I93d8ba199de972422e9380455e13254085438720
2014-02-26 21:21:59 -08:00
Alexander Afanasyev bfd31de5a9 build: Requiring boost >=1.48 during configure step
Change-Id: I09110e9993903a3157be22948a7275c4625cd393
Refs: #1186
2014-02-26 15:32:34 -08:00
Alexander Afanasyev 232c987a03 face: Implementing ip::address::is_loopback method for Boost <1.47
boost::ip::address::is_loopback method appeared only in Boost 1.47.
This commit enables the same functionality for earlier versions of
boost, based on implementation in 1.55.

Change-Id: I571408fc7db44eebd14405e7b7a9810b5d061802
2014-02-20 20:54:04 -08:00
Alexander Afanasyev bd220a053b face: Implementation of encode/decode of LocalControlHeader
LocalControlHeader can only be used on faces that are derived from
LocalFace.  UnixStreamFace is directly inherited from LocalFace,
TCP face has two specializations: generic TcpFace (strictly not local),
and LocalTcpFace.

refs #1213

Change-Id: I8a158c3bc4bb929eedd15757cfddecc0d1049f9f
2014-02-20 15:54:22 -08:00
Alexander Afanasyev a0a10fb081 face: Implementing close operation and many related fixes in TcpFace and TcpChannel
Change-Id: Ib6b751e80454e149bf94f3867663d5e705cbf4a0
refs: #1250, #1248
2014-02-14 10:00:50 -08:00
Alexander Afanasyev a16abd2822 face/tcp: Fixing multiple accept on a channel
Also, this commit includes more thorough test for TCP channel (testing
if multiple connections can be made to the same channel).

Change-Id: I3b89a6d994b5b17286448013aa04a77c92c0267a
refs: #1134
2014-01-31 18:13:36 -08:00
Alexander Afanasyev 3958b015d5 face/tcp: Fixing TcpChannel and TcpFace implementation and enable basic logging in both
Change-Id: If9a00c13caccbeb117204655ced293d49860d6e4
refs: #1134, #1133
2014-01-31 17:24:23 -08:00
Junxiao Shi 8c8d2187b3 fw: integrate forwarder, strategy, tables
refs #1131, #1136

Change-Id: Ica58341cdc1ea1dc421693a87f35fc50177a707d
2014-01-31 00:53:45 -07:00
Alexander Afanasyev 18bbf81601 src: Changing namespace ndn to namespace nfd
Also, this commit imports used classes from ::ndn namespace (from
NDN-CPP library) directly to ::nfd namespace.

refs: #1163

Change-Id: I9cc9d72e00af495b4ed0c84e6d418a7c9ba986cb
2014-01-29 14:12:58 -08:00
Alexander Afanasyev 334b714823 face/tcp: Add map of remoteEndpoint-Face within channel
If connect operation requested twice for the same remote endpoint (and
the first connection was successful), the second request will call
FaceCreated callback immediately (or after endpoint resolution) with the
previously created face.

refs: #1132, #1134

Change-Id: I5f7e5237a42289a96d7fd9d16bda47fc7cda4dfc
2014-01-28 22:59:25 -08:00
Alexander Afanasyev 855a53c51e face/tcp: Adding success/fail callbacks for TCP channel connect/listen
refs: #1132, #1133, #1134, #1135

Change-Id: I7df15dd9cd24f26b1ed96a4781934ffd93bc8f6e
2014-01-28 22:52:28 -08:00
Alexander Afanasyev 8ad71bac3e face/tcp: Implementing accepting and establishing connections with TCP Channel
refs: #1132, #1133, #1134, #1135

Change-Id: I8878784059fd962187bfcdd23b5adcaf9135cf4e
2014-01-28 22:49:42 -08:00
Alexander Afanasyev a9034b0e0f face: Skeleton implementation for the TCP protocol (face, channel, factory)
refs: #1132, #1133, #1134, #1135

Change-Id: I4a5935a078c7289dc6ea9b33f358f1a578c4405c
2014-01-27 00:20:04 -08:00