summaryrefslogtreecommitdiff
path: root/httpclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'httpclient.c')
-rw-r--r--httpclient.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/httpclient.c b/httpclient.c
index f1dd793..a3fb192 100644
--- a/httpclient.c
+++ b/httpclient.c
@@ -389,3 +389,19 @@ cHttpInfoClient::~cHttpInfoClient() {
string cHttpInfoClient::getMsgBody(int) {
return "{\"type\":\"INFO\",payload:" + mBody +"}";;
}
+
+
+//--------------------------------
+//----- cHttpMesgPushClient ------
+//--------------------------------
+cHttpMesgPushClient::cHttpMesgPushClient(int f, int id, int port, SmartTvServer* fac, string peer, string mesg) : cHttpClientBase(f, id, port, fac, peer), mMesg(mesg) {
+
+ createRequestMessage("");
+}
+
+cHttpMesgPushClient::~cHttpMesgPushClient() {
+}
+
+string cHttpMesgPushClient::getMsgBody(int) {
+ return "{\"type\":\"MESG\",payload:" + mMesg +"}";;
+}