So I have a project my team is working on. We are making an instant message program in C. We need some ideas. I am not gana tell what we have come up with because i want to hear other solutions. How would you guys start on this?
So I have a project my team is working on. We are making an instant message program in C. We need some ideas. I am not gana tell what we have come up with because i want to hear other solutions. How would you guys start on this?
is it even possible in c?
1) Read sockets.
2) Take a look at an open source project.
3) If you are sure that can do it in C, then don't do it. But keep in mind, that C can do almost anything (but it's very hard for some applications)
Suggestion: Move this topic to Networking/Device Communication.
It can be done in C. As to how easy it is, is debatable.
Socket programming is a possible solution
Some help for your program may be found here:
http://beej.us/guide/bgnet/output/ht...age/index.html
What about RPC?
I don't know what RPC is sorry.
k so our group decided on socets. Winsockets something like that. are there any pseudo code you guys know about for this?
Not quite pseudo-code, but something along these lines:
The simple solution is to do the socket work in two threads, one that is reading the keyboard and sending to the socket for the other participant(s(), and one that is reading the socket of the other participants.
You'll probably actually need a third thread that is writing the output too the screen.
You will need a method of discovery - how to find other people you can talk to.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
You don't really need to find other people to talk to for a simple messaging system.
First work on making a connection across 2 known computer addresses.
Then work on requests for adding based on IP or a similar communication protocol.
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Cross-posted and bumped all over the place.
http://cboard.cprogramming.com/showthread.php?t=95997
This one is done, stick a fork in it.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.