Messenger Programming ?  
Author Message
mlath





PostPosted: .NET Framework Networking and Communication, Messenger Programming ? Top

Hi all,

My project is to program a messenger ( server and client ) for my university using C#I know C#(Sockets, TCPClient, TCPListener,Remoting and NetworkStream ) and networking well.

Using the username and password of each student how has an email in (kfupm.edu.sa) he can use my client to connect to my server then my server will check the username and password form the IT server of the university after that the student can communicate with his friends.

I want to ask you some question:

1- Is it better to use Socket

2- From where can I start. Quick steps

3- How can I list the contact list of the user in the client

4- Do you have any ideas Suggestions

5-Can I use StremsReader and StreamWriter instead of using Send and Receive

thank you



.NET Development34  
 
 
mlath





PostPosted: .NET Framework Networking and Communication, Messenger Programming ? Top

Iam waiting


 
 
RizwanSharp





PostPosted: .NET Framework Networking and Communication, Messenger Programming ? Top

1) Sockets is best suited here for its performance...

2) MSDN, Code project have also got good samples, Search google Sockets in C# etc

3) Server will have a database, where usernames and passwords of all the students will be stored, when a user will connect it'll send username and password to the server, server will query the database and see if its a valid user, if so server will see how many clients are online, build a list and send back to the client....

4) Just start it, it'l go fine with this idea, Create some small database, write some small samples on sockets, connections disconnections, sending and receicving data, events, locking etc,...

5) I would recommend using NetworkStream and asynchrnous read functions it...

Best Regards,

Rizwan



 
 
mlath





PostPosted: .NET Framework Networking and Communication, Messenger Programming ? Top

Thanks alot Rizwan.
 
 
mertkan65





PostPosted: .NET Framework Networking and Communication, Messenger Programming ? Top

You can find some articles and code samples in www.codeproject.com

http://www.codeproject.com/cs/internet/#Client%2FServer+Development

 
 
mlath





PostPosted: .NET Framework Networking and Communication, Messenger Programming ? Top

Thanks Mert the link was usefull .