{"id":24962378,"url":"https://github.com/taxpater/c-eshop-sockets","last_synced_at":"2025-07-08T00:38:10.895Z","repository":{"id":274868402,"uuid":"924327900","full_name":"taxpater/C-eshop-sockets","owner":"taxpater","description":"Code showcase for a project assigned during my studies.","archived":false,"fork":false,"pushed_at":"2025-01-29T20:14:06.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T21:20:05.270Z","etag":null,"topics":["c","eshop","makefile"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taxpater.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-29T20:02:39.000Z","updated_at":"2025-01-29T20:15:53.000Z","dependencies_parsed_at":"2025-01-29T21:31:36.230Z","dependency_job_id":null,"html_url":"https://github.com/taxpater/C-eshop-sockets","commit_stats":null,"previous_names":["taxpater/c-eshop-sockets"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taxpater%2FC-eshop-sockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taxpater%2FC-eshop-sockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taxpater%2FC-eshop-sockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taxpater%2FC-eshop-sockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taxpater","download_url":"https://codeload.github.com/taxpater/C-eshop-sockets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246112637,"owners_count":20725300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","eshop","makefile"],"created_at":"2025-02-03T09:00:01.609Z","updated_at":"2025-03-28T22:42:01.925Z","avatar_url":"https://github.com/taxpater.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ec-eshop-sockets\u003c/h1\u003e\nThis repository contains the code for a project assigned as part of a prgramming lab, as a way to evaluate and enhance our knowledge in inter-process communication (IPC) utilising sockets, and the fork() function.\n\u003cbr\u003e\u003c/br\u003e\n\n\u003e [!NOTE]\n\u003e You may find a version of this project that utilises pipelines instead of sockets [here](https://github.com/taxpater/C-eshop-pipes).\n\nMoreover, it is a simulation of an e-shop selling laptops, where a CLIENT_AMOUNT of different clients submit ORDER_AMOUNT of orders each to the server, waits for the server to process each one their orders as they are being submitted one by one, and then replies to them with whether the order was completed successfully or not, with CLIENT_AMOUNT \u0026 ORDER_AMOUNT being set in the func.c file. The product catalog is created automatically on each iteration through the InitialiseCatalog function, with each product having a set amount of stock, and the calalog having a set size defined by the PRODUCT_CNT \u0026 CATALOG_SIZE variables correspondigly. When all orders are processed, the server outputs a statistics report of the performance of each product, and of the shop as a whole.\n\u003cbr\u003e\u003c/br\u003e\nThe code contains comments in most parts to ensure easy understanding of it's functionality.\n\u003cbr\u003e\u003c/br\u003e\n\n\u003e [!WARNING]\n\u003e If you wish to run this program on your local system as is, it is required to be using a UNIX system that supports make-file, and has the gcc compiler available. In any other case, you will have to modify the make-file to use the compiler of your choice, or compile all the files one by one manually.\n\n\u003ch2 align=\"center\"\u003eContributions\u003c/h1\u003e\nAs this repository serves as an archive for the project, contributions will not be accepted on the main branch, unless they are adressing a possible error with my code, or suggesting minor improvements that don't alter what the code does.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaxpater%2Fc-eshop-sockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaxpater%2Fc-eshop-sockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaxpater%2Fc-eshop-sockets/lists"}