C# Instant Messenger Help
-
I want to start a simple windows P2P instant messenger in C# I'll put here some questions I need guidance for, in the conceptual and technical aspects. Let's say the user had successfully logged into his account, and the app needs now to get and populate the list of contacts (saved on my apache/php/mysql server). How would you implement the data retrieval (important) and later population of the contacts list? Is WebClient.DownloadString[Async] a good approach? Is there a better way? How often should the app check for updated list (online/offline statuses). Recommendations accepted. How can I parse JSON data on C#.NET (Visual C# Studio 2010) I will get JSON strings. Thanks!
-
Answer:
You should have user relations in a seperate table that links user ID's. The data retreival should happen through a stored procedure that collects all data for that user on the server and sends them to the user. You should use the Observer pattern for the update system, then whenever there is a status change you send a message to the user client, that changes the status. Not sure but I'm pretty sure there is library functionality for this.
Dandy at Stack Overflow Visit the source
Related Q & A:
- How to set up Yahoo! instant messenger?Best solution by Yahoo! Answers
- How do I change my Yahoo! Instant Messenger name?Best solution by Yahoo! Answers
- How can I get the games in my Yahoo instant messenger to work?Best solution by Yahoo! Answers
- How to change a name on Instant messenger?Best solution by Yahoo! Answers
- Which Instant Messenger is better, Yahoo or MSN?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.