unable to send information from server to client (alljoyn)

asked 2015-10-13 23:39:02 -0800

pankajyadav gravatar image

updated 2015-10-14 07:05:58 -0800

ry.jones gravatar image
Linux Foundation Staff

Hi, I am new in alljoyn/allseen. I am trying to send information of server to client. like list of process running on board, list of arguments etc

but unable to send information. I am getting on client information only. for this I have modified dochat function in chat.cc file

QStatus DoTheChat(void)
{
    const int bufSize = 1024;
    char buf[bufSize];
    QStatus status = ER_OK;
    while ((ER_OK == status) && (get_line(buf, bufSize, stdin))) {     

         char* buf = listofarguments();                                                //here I have called my function 
          status = s_chatObj->SendChatSignal(buf);
    }

    return status;
}

I dont know where should I do modification to send information from server to client.

Please help me out.

edit retag flag offensive close merge delete

Comments

you should ask on the mailing list: https://lists.allseenalliance.org/mailman/listinfo/allseen-core

ry.jones ( 2015-10-14 07:06:39 -0800 )edit

I have sent mail to allseen-core@lists.allseenalliance.org but nobody is responding. If somebody will give me guess that in which file I should do modification then also I can do further debugging. I just want to communicate server and client. Regards, Pankaj

pankajyadav ( 2015-10-15 02:02:32 -0800 )edit

DoTheChat will take an input from stdin and send it in an AllJoyn message to the other end which receives it and displays it. chat.cc is a pure peer-to-peer model (essentially no server / no client). A peer sends a message to another. Hence, you can modify DoTheChat function on other end as well.

praveenb ( 2015-10-16 00:02:27 -0800 )edit