{"id":19470035,"url":"https://github.com/manavmehta/tcp-file-sharing","last_synced_at":"2026-04-19T05:35:18.600Z","repository":{"id":46573249,"uuid":"372300510","full_name":"manavmehta/tcp-file-sharing","owner":"manavmehta","description":"A Client-Server architecture CLI that allows transfer of files hosted on the server to any number of connected clients, making use of TCP protocol for reliable file transfer.","archived":false,"fork":false,"pushed_at":"2021-10-05T08:37:36.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-05T12:54:55.322Z","etag":null,"topics":["cli","cpp","file-sharing","socket-programming","tcp"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manavmehta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-30T19:36:46.000Z","updated_at":"2021-10-22T17:15:32.000Z","dependencies_parsed_at":"2022-09-22T18:44:23.959Z","dependency_job_id":null,"html_url":"https://github.com/manavmehta/tcp-file-sharing","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/manavmehta/tcp-file-sharing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manavmehta%2Ftcp-file-sharing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manavmehta%2Ftcp-file-sharing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manavmehta%2Ftcp-file-sharing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manavmehta%2Ftcp-file-sharing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manavmehta","download_url":"https://codeload.github.com/manavmehta/tcp-file-sharing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manavmehta%2Ftcp-file-sharing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31996445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","cpp","file-sharing","socket-programming","tcp"],"created_at":"2024-11-10T18:55:31.144Z","updated_at":"2026-04-19T05:35:18.582Z","avatar_url":"https://github.com/manavmehta.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TCP File Sharing Application\n\nThe application has two primary parts - Client and Server - and the reliable transfer is ensured using TCP with help of socket() API specifying SOCK_STREAM.\n\n## The Client’s flow:\n\n* Checks for validity of arguments - needs server’s ip and port to fire up\n* Creates sockfd which controls the flow or the control of the connection\n* Connects socket ref by sockfd to server_addr (address and port specified)\n* Set up data connection in listenfd descriptor and binds the socket to data_addr port\n* Then until user quits, listens to commands, parses it using helpers, and executes them using the respective helper functions\n\n## The Server’s flow:\n* Opens a TCP connection and starts listening to incoming connections\n* Binds the listening file descriptor to the specified port\n* Creates a fork of its process for every incoming connection, closing listenfd for that particular fork\n* Receives client’s data and command\n* Takes the necessary actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanavmehta%2Ftcp-file-sharing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanavmehta%2Ftcp-file-sharing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanavmehta%2Ftcp-file-sharing/lists"}