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 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.
The following cases are catered:-
β’ 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.β
β’ 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.β
β’ 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.
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
You can get in touch with me on my LinkedIn Profile:
You can also follow my GitHub Profile to stay updated about my latest projects:
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.
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! π
Copyright (c) 2018-present, harismuneer
Hey there, I'm Haris Muneer π¨π»βπ»
-
πΈοΈ 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.