LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 12: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, 02:07 AM   #2
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
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



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 02:55 AM
[SOLVED] How to detect a closed tcp client connection when client is only receiving data programlight Programming 9 10-24-2011 09:19 AM
[SOLVED] How could server detect closed client socket using TCP and c++? Lobinho Programming 6 08-10-2010 02:28 PM
how to detect what hostname a client is using to connect to server shail49 Linux - Server 3 10-12-2007 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:56 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
Open Source Consulting | Domain Registration