Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
please help me to get a multiuser chat in c language
Posted
Comments
enhzflep 7-Nov-12 1:46am    
Comment was removed by user enhzflep. - See Solutions for full text.
Sergey Alexandrovich Kryukov 7-Nov-12 1:51am    
Probably not 100% of your answers deserved posting as the answer, but sometime we answer anyway, not a big deal. Why not in this case? This can be really helpful, so I would gladly vote 5 for this text posted as the "solution". Not too late, by the way :-).
--SA
enhzflep 7-Nov-12 2:02am    
Thanks Sergey. Not sure why I didn't initially - I think I was just going to add the text up to but not including "Hints:", but thought better of that and decided to be helpful, rather than simply unpleasant.

As a member not afraid to 'tell it how it is', I really value your opinions mate - regardless of whether I share them or not (I rarely don't - I always say something :laughs: )

Hope you didn't get screwed over by the election or the hurricane.
Simon.
:)
Sergey Alexandrovich Kryukov 7-Nov-12 2:23am    
Thank you for your nice words.

I wasn't. I was in the lab during hurricane, it was the best place (no trees close to the car), it went down after 5 PM and even rain was mild, very warm outside. But when I came out, the light went off. For next day, we all worked at home. No blackouts at home, not for a minute. But last year, a pretty big tree fell next to my car -- not a scratch though. And none of the presidential candidates damaged anything yet. So far so good.

--SA

P.S.: I fixed the spelling of my first name in your post above, just to let you know...

1 solution

Please display some effort. Then we can help you with your project.
By definition, 'help' - means to assist with. It doesn't mean 'do for me'.

You don't explicitly ask for someone else to do it for you, but have displayed nothing - no-one even has a clue what you've tried and where you're stuck.

Some hints - break the problem up into smaller steps or chunks, and solve them individually, one by one.
Tasks like:
a) Create a server, to listen for connections from clients
b) think of a data-passing scheme - how will each message's writer and recipient be identified.
c) Connect to the server by a client.

When you break the task up into smaller problems, it becomes very much easier to find an article or tutorial that deals with that particular aspect of the project.

It's often handy to visualize various parts of the program as 'black-boxes' - concentrating only on what their input and output will be. Doing this during design allows you to build a conceptual picture of your project and identify requirements that these components have.

Best luck. :)
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 7-Nov-12 2:25am    
Well, a 5.
--SA
enhzflep 7-Nov-12 2:40am    
Thank-you Sergey. I'd have understood if you +4, on account of my spelling of your name. :face-palm: It's not like it was printed a few cm above my post, or that it's ever printed on the side of the screen or anything. Oh.. wait a minute! :-)

Glad to hear you weathered both storms safely.. thus far.

"none of the presidential candidates damaged anything yet. So far so good."
Ha ha ha - you're funny. :)
Sergey Alexandrovich Kryukov 7-Nov-12 12:21pm    
Nothing personal. Name is name, an advice for OP is still an advice. :-)
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900