{"id":19485134,"url":"https://github.com/piero24/computer-networks_20-21","last_synced_at":"2025-04-15T11:54:16.443Z","repository":{"id":170271823,"uuid":"394470423","full_name":"Piero24/Computer-Networks_20-21","owner":"Piero24","description":"Exercises in C for the computer networks course at unipd","archived":false,"fork":false,"pushed_at":"2023-12-03T03:38:52.000Z","size":5568,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T08:46:56.647Z","etag":null,"topics":["computer-networks","network","unipd","unipd-dei","universita-di-padova"],"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/Piero24.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,"governance":null}},"created_at":"2021-08-09T23:42:59.000Z","updated_at":"2024-07-01T07:44:34.000Z","dependencies_parsed_at":"2023-12-03T04:30:44.617Z","dependency_job_id":null,"html_url":"https://github.com/Piero24/Computer-Networks_20-21","commit_stats":null,"previous_names":["piero24/rdc20-21","piero24/computer-networks_20-21"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piero24%2FComputer-Networks_20-21","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piero24%2FComputer-Networks_20-21/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piero24%2FComputer-Networks_20-21/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piero24%2FComputer-Networks_20-21/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Piero24","download_url":"https://codeload.github.com/Piero24/Computer-Networks_20-21/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249067767,"owners_count":21207395,"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":["computer-networks","network","unipd","unipd-dei","universita-di-padova"],"created_at":"2024-11-10T20:25:58.324Z","updated_at":"2025-04-15T11:54:16.424Z","avatar_url":"https://github.com/Piero24.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Last modified](https://img.shields.io/badge/Last%20modified-10--Aug--2021-red)](https://github.com/Piero24/F.SW16-17)\n# Computer-Networks_20-21\n\n\u003e academic year 2020-2021 (unipd)\n\u003e \n\u003e University of Padua\n\n---\n\n## Exercises in C language for the examination of computer networks\n\n\nThese files are the exercises required in the year in previous academic years for\nthe Computer Networks course 1.\n\nHere is a collection with related solutions.\n\nThe exercises consist in the implementation by the user of some pieces of code\nthat allow you to implement new functions.\n\nThere are the texts of the various exercises with relative solution.\n\n**NOTE:** The exercises can have multiple solutions and not necessarily those present\nin these files are the best.\n\n\n## Disclaimer\n\n\nThese exercises are to be used ONLY to learn the basics\nof computer networks.\n\n\n**I AM IN NO WAY RESPONSIBLE FOR IMPROPER USE OF THIS MATERIAL.**\n\n\n**DO NOT** rely solely on the following exercises for preparation.\nAs the course program may vary over the years.\nUse this material only and exclusively for practice.\n\n\n## Description\n\n\nThere are several server-side and client-side exercises in C language.\n\nThe basic files provided by the teacher are those called standardCW.c, standardCW.c and standardWP.c\nInside each folder there is the complete solution and / or the file with the text.\n\nThe 3 standard files have very simple comments on all the code so as to allow for easy understanding\n\nThe RDC21-prof folder contains everything you did during the year with the teacher.\n\nThe solutions instead have only the lines modified and / or added with the comment.\nThe other lines that are the same as those of the standard files do not have comments to make them easier to read.\n\n### Tips\n\nOpen the terminal and type: `vim ~/.vimrc`\n\nCopy and paste the following code\n\n```\n\" F8 to save and compile creating np executable                                                                                                                                           \nmap \u003cF8\u003e :w \u003cCR\u003e :!gcc % -o np -g \u003cCR\u003e\n\" F9 to execute\nmap \u003cF9\u003e :!./np \u003cCR\u003e\n\n\" make your code look nicer\nset tabstop=4\nset shiftwidth=4\nset softtabstop=0 expandtab\nset incsearch\nset cindent\n\n\n\" Insert line numbers\nset number\n\" Insert the line to see which line we are in\nset cursorline\n\" By putting 'a' you can use the cursor to move but you cannot copy paste with 'r' or 'v' you can copy paste\nset mouse=r\n\" Set the colors for the syntax\nsyntax on\n```\n**RFCs useful for the exam:**\n\n- RFC.791\n- RFC.792\n- RFC.793\n- RFC.826\n- RFC.1945\n- RFC.2616\n\n**COPY FILES TO AND FROM THE UNIPD SERVER:**\n\n`scp \u003csource\u003e \u003cdestination\u003e`\n\nTo copy the file from B to A if logged into B:\n\n`scp /path/to/file username@a:/path/to/destination`\n\nTo copy the file from B to A if logged in to A:\n\n`scp username@b:/path/to/file /path/to/destination`\n\n(ad -r after scp if I want to copy a directory `scp -r \u003csource\u003e \u003cdestination\u003e`)\n\n**KEEP THE SSH CONNECTION ACTIVE**\n`ssh -o ServerAliveInterval=20 username@address`\n\n\n\n### Authors and Copyright\n\nPietrobon Andrea\n\n### Note\n\nThis material will **NOT** be updated in the future.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiero24%2Fcomputer-networks_20-21","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiero24%2Fcomputer-networks_20-21","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiero24%2Fcomputer-networks_20-21/lists"}