LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-01-2006, 02:34 AM   #1
iman2380
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
chat program in client-server mode


i want to program one client-server that can chat together.can you help me.please in c++?

Last edited by iman2380; 06-01-2006 at 02:38 AM.
 
Old 06-01-2006, 02:41 AM   #2
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Go to a bar, buy yourself a drink and talk with the barman: you are the client and you chat with the server

More seriously, how do you expect anybody to help you out with such a description ? What are the requirements ? Which programming language are you going to use ? In which environment, etc....

Even though I am not 100% sure, it looks like you should read http://www.linuxquestions.org/rules.php, more specifically the part talking about homework...
 
Old 06-01-2006, 03:12 AM   #3
iman2380
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Original Poster
Rep: Reputation: 0
i write this program but have problem with it.my main problem is "select" command.if you open your eye can see that i wrote c++ and in linux fedora.OK!
 
Old 06-01-2006, 05:11 AM   #4
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Ok sorry for the C++ that I oubviously dropped out. And sorry as well if you felt offensed: that was not my intention. Meanwhile the rest of my remarks remains the same.

The point is: if you don't explain your problem, you will not get any answers. You're talking now about a "select" command you have problems with... What's not working ? Do you have any error messages ? What did you try to resolve your problem that did not solve it ? Do you have any piece of code ? Etc.

I don't know anything about C++ so I will probably not be able to help you but... I am 100% sure you will not get any help from anybody if you don't explain your problem a bit more.

Cheers
 
Old 06-01-2006, 06:50 AM   #5
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
So let's see. You want to perform non blocking IO over a TCP/IP connection. You chose the select command (good start) and have some problems implementing it.

Can you provide the following:
1) Are you using straight C function or are you using a C++ library?
2) Sample of your code (in code tag please) around the call to the select() function
3) A detailed description of the error/problem that you are facing.
 
  


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
chat server in linux with windows client imezsons Linux - Networking 7 03-01-2011 12:32 AM
How to get IP address of client from server.c program nazsarwat Programming 1 04-22-2005 03:57 PM
Chat Server and web/java client Mercury3 Linux - Software 5 05-19-2004 10:39 AM
Chat client for yahoo chat?? Joey.Dale Linux - Software 11 01-23-2004 03:16 PM
Server Client program using UDP frostmagic Programming 9 11-14-2003 11:06 PM


All times are GMT -5. The time now is 05:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration