Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔗 LANLink - P2P Network Messenger

C# .NET Framework Windows Forms

A clean, modern, and light-weight Peer-to-Peer (P2P) desktop messaging application built with C# and Windows Forms. LANLink enables instant, secure, and low-latency real-time communication over Local Area Networks (LAN) using socket-based UDP protocol—featuring a sleek, modern Dark Mode interface with dynamic chat bubbles.


🚀 Connection Setup

Connection Setup


💬 Client 1 View (Sender)

Client 1 View


💬 Client 2 View (Receiver)

Client 2 View


✨ Features

  • P2P Socket Communication: Direct local network messaging powered by UDP sockets, eliminating the need for central server infrastructure.
  • Modern Dark UI/UX: Built with a custom, borderless dark theme featuring responsive card components, sleek input fields, and smooth contrast.
  • Dynamic Rounded Chat Bubbles: Custom GDI+ graphics rendering (GraphicsPath) providing auto-resizing text bubbles with custom alignment for incoming and outgoing messages.
  • Precise Byte Management: Efficient socket buffer handling that accurately decodes received bytes to prevent empty spacing or trailing buffer garbage in chat history.
  • Real-Time Asynchronous Listener: Background socket callback mechanism (BeginReceiveFrom) ensuring zero UI freezing during high-frequency message exchange.
  • Border-less Window Dragging: Integrated WinAPI messaging (WM_NCLBUTTONDOWN) allowing fluid window mobility without native OS title bars.

🛠️ Tech Stack & Architecture

  • Language: C# (.NET Framework)
  • UI Toolkit: Windows Forms
  • Core Networking: System.Net.Sockets (Socket, EndPoint, AsyncCallback)
  • Graphics & Rendering: System.Drawing.Drawing2D (GraphicsPath, AntiAlias)
  • Native Interop: System.Runtime.InteropServices (User32.dll for Form Movement)

📁 Project Structure

LANLink/
├── Program.cs                  # Main application entry point
├── Form1.cs                    # Core UI logic, socket handlers & chat rendering
├── Form1.Designer.cs           # Form visual elements & control declarations
├── Properties/                 # Application settings & resources
└── Resources/                     

About

A lightweight P2P local network messenger built with C# WinForms, for instant local network communication over UDP protocol.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages