3 Jul '12

Shiva Prasad

A collection of source codes that I wrote in VB 6.0, ASP.NET, PHP, C#.NET, VB.NET and JAVA in a course of my career as web developer and software engineer that I would like to share to my fellow programmers. Some of the codes here is not my original work that I found over the Internet and Books while I'm learning how to program. I hope you find my work useful in your learning in programming. Please share my work to other people also who interested to learn the basics of web development and programming. Thank you very much and Happy Productive Programming Everyone.

LAN Chat system

LAN Chat system is a complete client/server chat solution, independent chat system(it does not depend on any product of communication and chat). It has a Nice and clear user interface Using Socket Programming in Visual Basic 6.0. It can accept multiple connections.

There are also a few commands built in which include retrieving server date, time and uptime and can also be remotely shutdown. Both client and server use Windows Sockets for the purpose of connecting and sending lines of text between themselves. LAN Chat system application is a GUI interface for Net Send which allows identity spoofing, buddy management, blocking messages, and searching users in a domain. This application makes it easy to find people on a LAN and communicate with them easily without being online and makes net messages easier to read. The concepts of a chat-enabled application, like creating and entering chat rooms, sending and receiving chat messages, and management of user profiles, are abstracted by Prism Server and made available through simple properties, methods, and events.

Server features: messages history, statistic reports, easy managing of users and connections.

Client features: Instant messages, multiuser conversations, file transfer with multispeed option (with 2-3 clicks send the same file to more contacts), offline messages, auto-save conversation, local timestamps, contact groups (with more options, like “Invite group to conversation”), custom statuses, personalized alerts , print/print preview, send conversation with mail and more. Perfect communication for professional teams (programmers, hotel staff, science labs etc.). Compliant with all types of TCP/IP networks (LAN, WAN etc.).

Working Principle:

Following is how the application starts and how it works:

  1. As soon as the application is started, the main thread is spawned by the system.
  2. The main thread then spawns a thread which keeps listening on a given port.
  3. As soon as there is any connection request from a client, a connection is established. After the connection gets established, another thread is spawned to open a dialog box for chatting with clients.
  4. For every connection to a client, a new thread is spawned. Hence, if there are three clients connected to the server, then the total active threads will be five, one main thread, one thread for listening, and one each for chatting with the connected clients.

Now, let’s look at what each thread, that corresponds to a client connect, does:

  1. Calls the asynchronous Begin Receive method. A callback method is passed a parameter. This callback method is called when any data is received on that socket.
  2. When data is received on a socket, the data is read and displayed on the rich text box of the chat dialog. However, if a Socket Exception is raised, then the connection is closed, as this means that the client has asked to close the connection.
  3. When the Send button is clicked, data is sent to client.

Hardware and Software Requirements :

Minimum 2 PC’s
Minimum 40 GB Hard Disk
500 MB RAM
Windows XP Service pack 2
LAN Connection
Visual Basic 6.0

For more project Ideas visit http://www.bestprojectsidea.com/
 

 

Ask for any sort of Technical Support here :

Related Posts

There are 48 Comments.

  1. manu
    2:55 PM February 2, 2013

    please send me m.tech level projects

    thanks in advance

  2. sedki
    4:23 AM April 27, 2013

    please send me the source code of your application

    email;[email protected]

  3. bakwil
    4:08 AM June 18, 2013

    can i get a source code for online recruitment system? plizzzz am in in trouble wit my project

  4. Abdulrasheed
    7:16 PM June 29, 2013

    please for God sake can u kindly send me the full details of the project.. including the source code.. or if you can explain more on it.

  5. bhagya
    8:28 PM October 21, 2013

    what are the disadvantages of lan chat system?

  6. bhagya
    8:29 PM October 21, 2013

    is lan chat system is an old technique or new technique?

  7. Dominic
    5:01 AM October 30, 2013

    Pls send me the source code for this project,,thanks..[email protected]

  8. john
    2:54 AM November 12, 2013

    Nice work,i nee the sourc code:[email protected]

  9. nigatu
    12:59 PM December 23, 2013

    please

  10. juma
    1:21 AM January 26, 2014

    ITS A NICE WORK, PLEASE IF POSSIBLE SEND TO ME SOURCE CODE, OF LAN CHART SYSTEM

  11. MAQSOOD
    12:52 AM July 13, 2014

    Hello sir nice work Could Please send the source code of this project,[email protected]

Leave a Reply

*