Commit Graph
19 Commits
Author SHA1 Message Date
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 9427941781 face: refactor handling of LinkType face trait
This commit also includes some cleanups, fixes EthernetFace to report
the correct LinkType, and makes (get|set)Description non-virtual.

Change-Id: I53909d7bfa02a92641b523a766359413c966aae6
Refs: #2563
2015-02-27 15:12:16 +01:00
Davide Pesavento be40fb1e56 face: Introduce Face-specific logging macros
Change-Id: I169065de664d4c4394ccd08673bbe1f881c4d7e0
Refs: #2450
2015-02-26 18:42:59 +01: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
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 dc01700b45 face: Switching to 2 sockets in MulticastUdpFace for sending and receiving
To send over UDP multicast, we should not bind to multicast address.
This is true at least on OSX 10.9, which generates "Can't assign
requested address" error (error code: 49).  However, without binding to
the multicast address, the socket may receive unnecessary unrelated
packets.  To solve this problem, this commit splits sending and
receiving into two sockets, one for sending and one for receiving.

Change-Id: Ibce05c7071fd683a26b3c88cd2a168546c5dc605
Refs: #1668
2014-06-20 09:55:29 -07:00
Alexander Afanasyev cd591e1781 face: Parametrizing DatagramFace to correct MulticastUdpFace logging
Change-Id: I8a117dd0209b3babe3b7df35cd692c268c059866
Refs: #1675
2014-06-20 09:46:11 -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
Junxiao Shi 6e69432262 face/mgmt/fw/tools: add localUri to FaceStatus and FaceEventNotification
refs #1396

Change-Id: I6084745c62c44a409ecbd4a795cb712475e32416
2014-04-03 10:27:13 -07:00
Junxiao Shi 79494164c3 face: Face::getLocalUri
refs #1396

Change-Id: Icf02ae0a4136b6da3f6388cdce2f861bec44e940
2014-04-02 18:43:01 -07:00
Steve DiBenedetto bf6a93da4e core: change logging from environment variable to configuration file-based
GlobalConfigurationFixture uses unit-tests.conf to determine default
and module specific logging levels. Logging will gracefully default to
INFO if unit-tests.conf is not found. See unit-tests.conf.sample for a
sample configuration file.

refs: #1375, #1267

Change-Id: Ib0c4eb4149748e6658f94ef1afa23ddd3072c0fa
2014-03-31 20:46:51 -06:00
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
Giulio Grassi 69871f03d3 face: close idle Datagram faces
refs #1281

Change-Id: Ifc766964f653d3991b55d76361c8b9bbe5d630cf
2014-03-11 15:54:48 -07:00
Alexander Afanasyev 7e698e6aac face: Incrementing Face counters
Change-Id: Ia1d7917bb52cf01ab2ff304638bc9f6cbdb2626f
Refs: #1178
2014-03-08 20:27:43 +00:00
Alexander Afanasyev a39b90b2aa face: Implementing Face::getUri() method
Change-Id: I9a9f774b95784e5b7ec75472f1cc6cf64c4e5d7b
Refs: #1319
2014-03-06 09:25:06 +00:00
Giulio Grassi 624f6c610f face: UDP face/channel/factory
Change-Id: I4683b45378637133982efd23edd16a0c35148948
refs #1189
2014-03-02 13:29:10 +01:00