Commit Graph
13 Commits
Author SHA1 Message Date
Davide Pesavento d8d4d98656 face: delete redundant protocol typedefs.
Change-Id: I32e1100e7395070a29ee813658aac82b63b6c4f2
2014-03-21 23:34:33 +01: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 a39b90b2aa face: Implementing Face::getUri() method
Change-Id: I9a9f774b95784e5b7ec75472f1cc6cf64c4e5d7b
Refs: #1319
2014-03-06 09:25:06 +00: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 93ce75e6f7 face: Fixing bug with InternalFace considered not local and changing "isLocal" method to be pure virtual
This way the decision about the face locality has to be done explicitly
inside specific face implementation and potentially avoids problems.

Change-Id: I5219cce87385313546453d14a5a7ca4542893911
2014-02-19 14:11:07 -08:00
Davide Pesavento bc4dd8c812 face: UnixStream{Face,Channel,ChannelFactory} implementation.
refs: #1174

Change-Id: I14d1e357c96a02995355e7970323fe40847580aa
2014-02-17 23:03:06 +01: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 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 d32cb9657c face/tcp: Implementing mock version of TcpFace
The real version should avoid all exceptions in the processing path,
enable lazy decoding of Interest/Data packets, and implement
LocalControlHeader processing and association with Interest/Data
packets.

Change-Id: Ied907b3d10b7110a1dcc05d0d6d3c0dd277df8e1
refs: #1132, #1133, #1134, #1135
2014-01-28 22:59:20 -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