From 443d06f894751062da6d69238ce09f6fbfc27577 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sun, 15 Apr 2012 13:10:41 +0200 Subject: "Survey" pattern implemented Survey pattern is "multicast with reply". There are two roles: surveyor and respondent. Surveyor publishes a survey which gets delivered to all connected respondents. Each repondent can send a response to the survey. All the responses are delivered to the original surveyor. Once the surveyor decides that the survey is over (e.g. deadline was reached) it can send initiate survey. Late responses from old surveys are automatically discarded by the surveyor socket. Socket types: SURVEYOR, XSURVEYOR, RESPONDENT, XRESPONDENT Patch also includes a test program with surveoyr, two respondents and an intermediary device. Signed-off-by: Martin Sustrik --- builds/msvc/tests/tests.vcxproj | 6 +++++- builds/msvc/tests/tests.vcxproj.filters | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'builds/msvc/tests') diff --git a/builds/msvc/tests/tests.vcxproj b/builds/msvc/tests/tests.vcxproj index bb707c4..d1258e4 100644 --- a/builds/msvc/tests/tests.vcxproj +++ b/builds/msvc/tests/tests.vcxproj @@ -151,6 +151,10 @@ true true + + true + true + true @@ -184,4 +188,4 @@ - + \ No newline at end of file diff --git a/builds/msvc/tests/tests.vcxproj.filters b/builds/msvc/tests/tests.vcxproj.filters index b1eade2..0fb41a8 100644 --- a/builds/msvc/tests/tests.vcxproj.filters +++ b/builds/msvc/tests/tests.vcxproj.filters @@ -65,6 +65,9 @@ Header Files + + Header Files + @@ -76,4 +79,4 @@ Header Files - + \ No newline at end of file -- cgit v1.2.3