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.
- 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.
- 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)
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/


