C Programming in Linux Tutorial using GCC compiler. Tutorial should also be applicable in C/UNIX programming. This video shows an example on how create a simple webserver program in C. The webpage is embedded into the C program, as well as the name of the image files. However, these can be modified to have more flexibility, such that the filenames and webpage are not embedded into the program.
Amazon Auto Links: No products found.
Hello. Thanks for a great video! How can I get the source code?
It my case it exits after first client….it not running 2nd time…can you help?
Tip: set speed at 1.5x
God bless you and bless you daughter.
Pretty Daughter. 🙂
Thanks for all your videos.
I just finished to following your video. 🙂
I did everything the sam,e and the function sendfile is not defined, here are my imports:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
I had to add #include
Even after that I can’t see the images on the webpage, just the icon for image not found
I liked all your videos but this, libusb and segmentation fault videos are the ones which i liked the most…Your child also very cute…Thank you very much for your effort to teach others…
THANK YOU
char webpage[] = “HTTP/1.1 200 OKrn”
“Content-Type: text/html; charset=UTF-8rnrn”
“< !DOCTYPE html>rn”
“
..
..
..
What this that thing used for ?
I am a beginner, can you please explain what this program does ? what are you trying to show through this code ?
what if i want to make it in audio format like .mp3? @shellwavex
This is brilliant. Thank you!
Thank you so much. I’ve typed in every program and watched each video twice. Will “thumbs up” all of them. Looking forward to your other programming videos too.
Bless you and your daughter. Great video.
how can I download the GCC compiler for kali linux?
I looked for it but I could not find it.
can you please give me the link?
I don’t understand why sometimes you have to use -llibname, and sometimes not.
R. Stallman says “Here is an example program which makes a call to the external function sqrt in the math library ‘libm.a’:”
Why does he bloat text with trash?
Simpler:
“Example program calls external function sqrt in math library ‘libm.a’:”
Cool
These videos have been great, thank you.
I am getting an error message
“error: too few arguments to function call, expected 6, have 4
sendfile(fd_client,fdimg,NULL,4000);”
Can anyone please help me out with it as i don’t know what other 2 parameters i have to enter..??
thanks bro
24:34 sure, I will copy it. Oh wait! It’s a video!
I recommend you guys to check this book : “Linux Programming Unleashed”, there is an implementation of a web server in a more general approach.
How would one do the flexible htmls? for example if I point to localhost:8080/helloworld.html it will display that particular view?
Really I’m Very much Thankful for these Awesome tutorials…Thanks a lot
+1
What text editor did you use?
Can you upload a code of your tutorials?
How do I load index.html instead of writing the content in the webpage[ ] ?
eleven years ago. Cute!!