From caedca8d8e945cdc451d1be7df3d018993cb444b Mon Sep 17 00:00:00 2001 From: "hyuna0213.jo" Date: Mon, 30 Nov 2015 08:55:28 +0000 Subject: [PATCH] add the prefix definition to resolve the build error after '[IOT-828] OCRepresentation to provide host info' was submitted, build error has been encountered while building WITH_TCP=true option. so I added the prefix definition for coap over tcp. Change-Id: Ia479a1946eae78beffc146b61f99ec864bd0b142 Signed-off-by: hyuna0213.jo Reviewed-on: https://gerrit.iotivity.org/gerrit/4371 Tested-by: jenkins-iotivity Reviewed-by: Jaehong Jo Reviewed-by: Jon A. Cruz --- resource/src/OCRepresentation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resource/src/OCRepresentation.cpp b/resource/src/OCRepresentation.cpp index ac6654d..1eea68d 100644 --- a/resource/src/OCRepresentation.cpp +++ b/resource/src/OCRepresentation.cpp @@ -39,6 +39,7 @@ namespace OC { static const char COAP[] = "coap://"; static const char COAPS[] = "coaps://"; + static const char COAP_TCP[] = "coap+tcp://"; void MessageContainer::setPayload(const OCPayload* rep) { @@ -651,12 +652,10 @@ namespace OC { ss << COAPS; } - #ifdef TCP_ADAPTER else if (m_devAddr.adapter & OC_ADAPTER_TCP) { ss << COAP_TCP; } - #endif else { ss << COAP; -- 2.7.4