LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Server/Client Chatterbox (Detect word received from client) (https://www.linuxquestions.org/questions/linux-newbie-8/server-client-chatterbox-detect-word-received-from-client-4175581070/)

domingsun 05-31-2016 12:29 AM

Server/Client Chatterbox (Detect word received from client)
 
Hi All,

im programming a linux chatterbox in c++, i want to detect the word received from client, if client send "Hi" to server, and then server will check and detect if the Line contains "Hi", it will reply "Great Day"...

how to detect the word from the Line ?

ilesterg 05-31-2016 02:07 AM

Hi,

Please let me welcome you to LQ. :)

The template response you will get for asking such poorly structured question will be something like this:
1. What have you done so far?
2. Tell us what doesn't work
3. What error messages are you getting?
4. We're more than willing to help you out only if you have already worked on something instead of asking how to solve your homework.

This is not to bash new members but the harsh reality that you are asking others to solve your problem for you is imminent in your post. Maybe I am wrong and you can instead tell us what you have done so far, tell us your challenges, and we can pick up from there.

But in any case I don't think your question is Linux related and more on programming. I believe there's an appropriate subforum for that.

Cheers!


All times are GMT -5. The time now is 06:57 PM.