Skip to content

πŸ™‹β€β™‚οΈ A UDP based Check in/Check out System. In this system, the user/client is able to Check in and Check out from the system by sending a data packet from its host machine to the server.

License

Notifications You must be signed in to change notification settings

harismuneer/Check_In-Check_Out-System-UDP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ™‹β€β™‚οΈ Check In/Check Out System using UDP

views

Open Source Love svg1 GitHub Forks GitHub Issues contributions welcome

This is a UDP based Check in/Check out System. In this system, the user is able to Check in and Check out from the system by sending a data packet from its host machine. For instance:

User/Client must send a message with the following format:

YY-AAAA-CI (For check in) (e.g., 12-4159-CI)

Or

YY-AAAA-CO (For check out) (e.g., 12-4159-CO)

where (YY-AAAA is your roll number)

The system/server must get the packet sent by the client and must process the packet accordingly.

UDP (User Datagram Protocol):

UDP uses a simple connectionless transmission model with a minimum of protocol mechanism. With UDP, computer applications can send messages, referred to as datagrams, to other hosts on an Internet Protocol (IP) network without prior communications to set up special transmission channels or data paths. Following are its characteristics:

1. There is no guarantee of delivery, ordering, or duplicate protection.

2. Ideal for network applications where we can tolerate data loss but want to achieve low latency.

Complete Workflow

The following cases are catered:-

Check in

β€’ Marks the in attendance of the client in a database of the students and returns a welcome message β€œWelcome Student YY-AAAA”

β€’ If the user is already checked in it must send the message β€œYou are already here.”

Check out

β€’ Marks the out attendance for the client from the student database and then fill the empty place in the database (e.g., if a student initially placed at place 5 has left then all the students above position 5 must come one position down to fill that position). The server must send the message β€œGood Bye Student YY-AAAA! Have a nice day.”

β€’ If the user didn’t check in and sent the checkout packet, the server must return the message β€œYou didn’t check in today. Contact System Administrator.”

Constraints

β€’ You must print all the members present in the database each time client makes a request to check in or check out.

β€’ Server must not be restarted once started.

How to Run

The client. and server.c files are provided. Just compile each file using the following command on Linux terminal or Windows Bash and run it (For client, obviously replace the server.c filename with client.c). Make sure the server is running before running any client.

gcc server.c -o server.out


Author

You can get in touch with me on my LinkedIn Profile: LinkedIn Link

You can also follow my GitHub Profile to stay updated about my latest projects: GitHub Follow

If you liked the repo then kindly support it by giving it a star ⭐ and share in your circles so more people can benefit from the effort.

Contributions Welcome

GitHub Issues

If you find any bugs, have suggestions, or face issues:

  • Open an Issue in the Issues Tab to discuss them.
  • Submit a Pull Request to propose fixes or improvements.
  • Review Pull Requests from other contributors to help maintain the project's quality and progress.

This project thrives on community collaboration! Members are encouraged to take the initiative, support one another, and actively engage in all aspects of the project. Whether it’s debugging, fixing issues, or brainstorming new ideas, your contributions are what keep this project moving forward.

With modern AI tools like ChatGPT, solving challenges and contributing effectively is easier than ever. Let’s work together to make this project the best it can be! πŸš€

License

MIT

Copyright (c) 2018-present, harismuneer


Waving hand Hey there, I'm Haris Muneer πŸ‘¨πŸ»β€πŸ’»

Total Github Stars Total Github Followers


  • πŸ•ΈοΈ Founder of Cyfy Labs: At Cyfy Labs, we provide advanced social media scraping tools that enable businesses, researchers, and marketers to extract actionable insights from platforms like Facebook, Instagram, and X (formerly Twitter). Our tools are designed for use cases such as lead generation, market research, social listening, and more. Learn more at www.cyfylabs.com

  • 🌟 Open Source Advocate: Passionate about making technology accessible, I’ve developed and open-sourced several software projects for web, mobile, desktop, and AI on my GitHub profile. These projects have been used by thousands of learners worldwide to enhance their skills and knowledge.

  • πŸ“« How to Reach Me: To learn more about my skills and work, visit my LinkedIn profile. For collaboration or inquiries, feel free to reach out via email. For Cyfy Labs related queries, please contact us through our company website.


🀝 Follow my journey