Skip to content

RunProgrammer/DFP-Data-Flag-Protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›°οΈ Data Flag Protocol (DFP)

The Data Flag Protocol (DFP) is a lightweight TCP-based client-server communication protocol designed for fast, structured, and optionally secure message exchange using predefined flags. Official Site - https://dfp-data-flag-protocol.netlify.app/

πŸ“Œ Features

  • Fixed-length header messaging
  • Commands: PING, SEND, RECEIVE, LOGIN, REGISTER, DISCONNECT
  • UTF-8 encoded messages with a delimiter
  • SSL/TLS support (Comming soon)
  • Logging on the server side
  • Multi-threaded server handling concurrent clients

πŸ§ͺ Supported Flags

Flag Description
PING Check connection health
SEND Send a message to the server
RECEIVE Request a predefined message
LOGIN Login with username:password
REGISTER Register with username:password
DISCONNECT Close the connection

πŸ“ Folder Structure

. β”œβ”€β”€ server.py # Server-side implementation of DFP β”œβ”€β”€ client.py # Client-side interactive terminal interface β”œβ”€β”€ serverLog.log # Auto-generated server log file β”œβ”€β”€ LICENSE # Licensing information └── README.md # Project documentation

πŸ› οΈ Setup

Start the DFP server to begin accepting client connections. The server runs by default on 127.0.0.1:5000

Server

python server.py (or)

python server.py --host 0.0.0.0 --port 8080

python client.py 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages