Skip to content

Ch1L1/ipk_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

1. project - IPK

Author: Tomáš Homola

Date: 11.03.2022

Programming language: C

Compilation

Pomocou Makefile

make

Execution

./hinfosvc PORT_NUMBER

Description

Implementation of a server communicating via the HTTP protocol, which provides various information about the system. The server listens on the specified port and, according to the URL, will return the requested information with text/plain responses.

The server can be terminated with CTRL+C and can handle the following 3 types of requests sent by the client to the server with the GET command

Communication between the server and the client is possible using a web browser and wget and curl tools.

Examples

Get domain name

GET http://servername:12345/hostname

merlin.fit.vutbr.cz

Get CPU informations

GET http://servername:12345/cpu-name

Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz

Current CPU load

GET http://servername:12345/load

32%

Used resources

https://stackoverflow.com/questions/23367857/accurate-calculation-of-cpu-usage-given-in-percentage-in-linux

https://wis.fit.vutbr.cz/FIT/st/cfs.php.cs?file=%2Fcourse%2FIPK-IT%2Flectures%2FIPK2021-02-APLIKACE.pptx.pdf&cid=14678

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors