LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-31-2016, 01:29 AM   #1
domingsun
LQ Newbie
 
Registered: May 2016
Posts: 1

Rep: Reputation: Disabled
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 ?
 
Old 05-31-2016, 03:07 AM   #2
ilesterg
Member
 
Registered: Jul 2012
Distribution: CentOS, SLES, RHEL, HP-UX, OpenSUSE Tumbleweed KDE
Posts: 504

Rep: Reputation: 54
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to detect DHCP server in a LAN under a Ubuntu linux client chinabenjamin66 Linux - Server 5 11-18-2012 03:55 AM
[SOLVED] How to detect a closed tcp client connection when client is only receiving data programlight Programming 9 10-24-2011 10:19 AM
[SOLVED] How could server detect closed client socket using TCP and c++? Lobinho Programming 6 08-10-2010 03:28 PM
how to detect what hostname a client is using to connect to server shail49 Linux - Server 3 10-12-2007 06:25 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration