Hello,
In class we are making a Instant Messenger program. It is not a homework assignment we are working it out in class but we are trying to work around how to fix a problem we have. How we knowing what type of information is passed (whether we are sending the server a username or a message to other people or recieveing a message or a new buddy list to put in the buddy list edit box) is through "protocols" we have set up. ESC 1 Username esc 0 means to the server, "this is a username" etc... we got the buddy list to work. BUT we are having trouble with the server. we want it so when someone sends a message to someone it'll send open a window in the person who we are sending it to if one is not already up. how we are trying this is by having a buddytable were when we get the buddy list we put it in a table with a ptr to a new window and at first i's all null and when someone says we want to talk to this person it'll come in and we pop up the right window. The problem we are having is... how are we going to get this to update when someone exits and how the server determines someone exits and resends the buddy list. Does anybody have any ideas. I know this is probably confusing without code, and the fact that i'm not good at explaining things, but if anyone has any ideas with what i've said or can ask questions that will help me clear thigns up that'd be great.
The server is in C++ on linux and the client program is in C++ on windows using MFC.
In class we are making a Instant Messenger program. It is not a homework assignment we are working it out in class but we are trying to work around how to fix a problem we have. How we knowing what type of information is passed (whether we are sending the server a username or a message to other people or recieveing a message or a new buddy list to put in the buddy list edit box) is through "protocols" we have set up. ESC 1 Username esc 0 means to the server, "this is a username" etc... we got the buddy list to work. BUT we are having trouble with the server. we want it so when someone sends a message to someone it'll send open a window in the person who we are sending it to if one is not already up. how we are trying this is by having a buddytable were when we get the buddy list we put it in a table with a ptr to a new window and at first i's all null and when someone says we want to talk to this person it'll come in and we pop up the right window. The problem we are having is... how are we going to get this to update when someone exits and how the server determines someone exits and resends the buddy list. Does anybody have any ideas. I know this is probably confusing without code, and the fact that i'm not good at explaining things, but if anyone has any ideas with what i've said or can ask questions that will help me clear thigns up that'd be great.
The server is in C++ on linux and the client program is in C++ on windows using MFC.