Thread: Simulation of electronic messaging

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    5

    Simulation of electronic messaging

    Hi! I need help with something...

    I need to make a client/server application that simulates a simple electronic messaging system. The users of this system have adresses of the type name@domain. The names of the domains will be known in advance and published on a website.

    Each domain possesses a MHS server (Message Handling System) that plays the role of relaying incoming and outcoming messages. Each user has a client named UA (User Agent). The MHS is responsible for the message reception coming from other MHS and responds to the requests of the UA for sending and recieving the messages of the users. To contact a MHS, we must consult the website to know the port name and the domain. The UA can send, receive and get the list of messages destined to him from the MHS.

    Does anyone have any C code example or any guidelines to help me resolve this? Is there an existent C code of a similar application (simple). I would appreciate it a lot as I have no clue what to do at this point. I'm not familiar with C langage and I have never done anything similar to such an application. I don't know where to begin.

    Thank you!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > I'm not familiar with C langage
    OK, so what do you know then?

    This seems an awfully tall order for someone who isn't proficient in C.

    I mean, if you were at least familiar with various internet protocols (eg HTTP for reading the central web page), that would be a start, but most people figure that out by learning C first.
    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.

  3. #3
    Registered User
    Join Date
    Feb 2005
    Posts
    5
    Hi. I know a little bit of ada, java, sql, etc. I could learn the C langage, the thing is I don't even know how to attack this project. I'm looking for either a summary of what I should do, like guidelines of what to do. Or if possible, a code (example or code on internet) that basically does something similar to this. ANY help would be very appreciated, wether small or big.

  4. #4
    Handy Andy andyhunter's Avatar
    Join Date
    Dec 2004
    Posts
    540
    Step 1: Learn the language
    Step 2: Write out what you want exactly on paper
    Step 3: Insert code into your layout
    Step 4: Ask a smart question
    Step 5: Repeat as necessary
    i don't think most standard compilers support programmers with more than 4 red boxes - Misplaced

    It is my sacred duity to stand in the path of the flood of ignorance and blatant stupidity... - quzah

    Such pointless tricks ceased to be interesting or useful when we came down from the trees and started using higher level languages. - Salem

  5. #5
    Registered User
    Join Date
    Feb 2005
    Posts
    5
    Quote Originally Posted by andyhunter
    Step 1: Learn the language
    Step 2: Write out what you want exactly on paper
    Step 3: Insert code into your layout
    Step 4: Ask a smart question
    Step 5: Repeat as necessary
    Why the hostility and the attitude? If you don't have a code example about a similar application or if you're not going to help by giving any relevant information, then you don't need to post in this thread. I posted what the application is supposed to do and I'm looking for any sort of solutions and help. You can tell me, first you need to use fork() in order to blablabla or you have to use things like blablabla. I told you that I don't even know how to attack this application so you're not really helping with your post.

  6. #6
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    If you don't have a code example about a similar application or if you're not going to help by giving any relevant information, then you don't need to post in this thread.
    If you don't have the abiltity for whatever reason to be courteous to those who help you free of charge, you don't need to post in this forum.

    Granted, people can seem rude at times, but this is our perspective: We constantly see people on this forum who don't know the language who just want a "code example". The code example can not help them in any way shape or form, and in the end they just give up, ignore our advice, and waste our time.

    The suggestion to learn the language is a good one. I doubt it's what you want to hear, but there's no way you're going to get this project done if you don't learn the language. Nobody teaches you how to program by showing you an example of every possible project and having you memorize how it was done. On the contrary, you get projects done by knowing the language and learning certain strategies.

  7. #7
    Registered User
    Join Date
    Mar 2004
    Posts
    494
    No one here will teach you how to code. You need to do it on your own so you can understand what you really need to do and how you can achieve what you want. Most likely what you want is done by having advanced C or C++ knowledge so you need to start with the basics. Here is list of tutorials http://www.cprogramming.com/tutorial.html . If thats not enough for you, then you can always use google, atleast google will not mind anything you ask from it
    When no one helps you out. Call google();

  8. #8
    Registered User
    Join Date
    Feb 2005
    Posts
    5
    First I didn't mean to be disrespectful or not courteous. I just thought andyhunter replied to me in a way that wasn't helpful and kind of an attitude like "read and ask intelligent questions". But either way, it's okay, I didn't mean to become defensive and I'm sorry.

    The thing is I don't have the time to learn C from scratch, otherwise I would be doing it right now. That's why the fastest thing is to read similar examples, learn to understand them, and go from there by looking what things I should modify, etc. It's much faster and easier to understand a certain program or a certain code than learning from scratch a langage and starting from a blank page. Also, I don't even know how to attack this application in ANY langage even those I know. I don't know where to begin but with a little guidance and help, I am definitely positive that I could manage to do something.

    Either way, if someone can help me do this small application or at least give me some directions, examples or steps, please send me a private message or reply to me. I would appreciate it a lot and I would even try to return you the favor in some way or another. If nobody can help, then I guess I don't think I'll be able to do this application, which is not a huge deal. It's not a matter of life or death, I can decide not to do this application but I want to at least try.

    Whatever happens, thanks for reading and for your time.
    Last edited by c_help; 02-17-2005 at 10:19 PM.

  9. #9
    Registered User
    Join Date
    Nov 2004
    Location
    USA
    Posts
    516
    some sites that might be of interest to you

    http://cyberhipster.com/net/inetprog.htm
    http://www.sockets.com/samples.htm
    http://shoe.bocks.com/net/

    check them out, might help you in your application.
    Code:
    >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.

  10. #10
    Registered User
    Join Date
    Feb 2005
    Posts
    5
    Ping, thanks a lot of the links.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fork, execv, spawn, or something else?
    By DavidP in forum C++ Programming
    Replies: 8
    Last Post: 01-26-2009, 04:25 PM
  2. Role of c++ in simulation software
    By CChakra in forum C++ Programming
    Replies: 9
    Last Post: 11-18-2008, 02:36 AM
  3. Help with time simulation assignment
    By rakan in forum C++ Programming
    Replies: 3
    Last Post: 10-31-2006, 11:39 AM
  4. need some help with basic simulation
    By JOlszewski in forum C Programming
    Replies: 1
    Last Post: 01-25-2006, 10:36 PM
  5. electronic cad program
    By whistlenm1 in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-24-2003, 01:28 PM