Click here to Skip to main content
15,902,492 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am new to the c# communication platforms. I am interested in creating a IM network so that my friends can be connected to it. I dont know mechanism of creating IM network. When I searched through google, I didnt got anything and it increases my confusion on this subject.

What I want to know is how to create an IM network ... ? I can develop IP based client software but consider msn it is not ip based chatting .. so I want to develop Im client that only works with my IM network
Posted

1 solution

Surprisingly, with .NET this is easier to achieve good results then ever before. It's not clear if you need it Web-based or custom (which is way easier). You can still use HTTP protocol in order to go through firewalls.

Well, most important common mistake to avoid: don't create a thread per the client; they all can be served by just two threads: one listening to new connection, another busy with exchange with the available list of users (connected remote sockets).

You can have a rough idea if you look at the skeleton design I described in my past solution: Multple clients from same port Number[^].

Here you can find my overview of the levels of networking you can choose from:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

However, I think for your application the level of TcpClient/TcpListener would be the most suitable. I recommend you do some of your own research though.

It is highly simplified compared to what you want to do, so your project will take considerable effort. Still, I'm sure it is quite feasible for an experience developer solving such problem for the first time.

Good luck,
—SA
 
Share this answer
 

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