{"id":17886409,"url":"https://github.com/lordronz/viktori-psj-server","last_synced_at":"2025-08-20T00:17:36.307Z","repository":{"id":45243496,"uuid":"420859993","full_name":"LordRonz/viktori-psj-server","owner":"LordRonz","description":"FP Pemrograman Sistem dan Jaringan (Sisi Server)","archived":false,"fork":false,"pushed_at":"2021-12-28T13:40:31.000Z","size":69,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T02:25:06.300Z","etag":null,"topics":["c","cmake","tcp","tcp-server","tcp-socket"],"latest_commit_sha":null,"homepage":"https://lordronz.github.io/viktori-psj-server","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LordRonz.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}},"created_at":"2021-10-25T03:02:16.000Z","updated_at":"2023-08-28T12:44:09.000Z","dependencies_parsed_at":"2022-08-31T01:15:20.724Z","dependency_job_id":null,"html_url":"https://github.com/LordRonz/viktori-psj-server","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/LordRonz/viktori-psj-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordRonz%2Fviktori-psj-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordRonz%2Fviktori-psj-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordRonz%2Fviktori-psj-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordRonz%2Fviktori-psj-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LordRonz","download_url":"https://codeload.github.com/LordRonz/viktori-psj-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordRonz%2Fviktori-psj-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271242482,"owners_count":24725056,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"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":["c","cmake","tcp","tcp-server","tcp-socket"],"created_at":"2024-10-28T13:06:28.914Z","updated_at":"2025-08-20T00:17:36.197Z","avatar_url":"https://github.com/LordRonz.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Viktori PSJ Server\n\n## Index link\n\n[Link untuk referensi](https://lordronz.github.io/viktori-psj-server)\n\n## Deskripsi\n\nRepo ini adalah sisi server dari projek FP pemrograman sistem dan jaringan.\n\nUntuk client akses di [link ini](https://github.com/lordronz/viktori-psj-client)\n\nDan untuk program yang ditempatkan di arduino silahkan akses di [link ini](https://github.com/lordronz/viktori-psj-arduino)\n\n## Kelompok\n\n- Aaron Christopher 07211940000055\n- I Putu Haris Setiadi 07211940000046\n- I Gusti Agung Hari 07211940000073\n\n***Hanya bisa di run di UNIX System, windows gabisa***\n\u003e Bisa tapi ribet nanti\n\n## Fitur\n\n- Komunikasi dengan client menggunakan TCP Socket\n- Multithreading support\n- Support fork (child process memiliki threadnya masing-masing juga)\n- Validasi input/request dari client\n- Menulis request di txt dengan menggunakan stdio\n- Implementasi command `tail` menggunakan UNIX I/O untuk mendapatkan `n` baris terakhir pada txt\n- Menggunakan signal handler untuk mematikan server, dan membersihkan semua resources yang ada.\n\n## Yang perlu diinstall supaya bisa ngerun\n\n- gcc (Pasti ada sih klo install linux)\n- make (untuk build)\n- cmake (untuk memudahkan build)\n- vscode (*opsional, ada ekstensi yang memudahkan ngebuild binarynya)\n\n\u003e make sama cmake itu opsional **KALAU** bisa compile manual pake gcc dan segala flagsnya\n\n## Cara ngerun\n\n### Compile cara pertama\n\nPindah ke direktori dimana `CMakeLists.txt` berada, trus\n\n```sh\ncmake --build ./build\n```\n\n### Compile cara kedua\n\nEksekusi command build.sh\n\n```sh\n./build.sh\n```\n\nAtau\n\n```sh\nbash build.sh\n```\n\n### Ngerun\n\nIni gapake argument sih, buat output cara pemakaian aja\n\n```sh\n./build/Server\n```\n\nIni kalo IPnya 0.0.0.0 (listen anywhere)\n\n```sh\n./build/Server 6969\n```\n\nIni ngerun di local area network, cek ip pake command `ifconfig`\n\n```sh\n./build/Server 6969 192.168.1.5\n```\n\n## TODOs\n\n- [X] Write buffer yang diterima ke text file\n- [X] Mengformat text file yang ditulis or smth\n- [X] Support multithreading\n- [ ] Pakai scripting language e.g Python untuk mempermudah ngerun dan nampilin help description\n\nTodos lanjutan menyesuaikan dengan client.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordronz%2Fviktori-psj-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flordronz%2Fviktori-psj-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordronz%2Fviktori-psj-server/lists"}