I'm very poor and I have an old PC but I love programming . I thought maybe if I use c I can become a really good developer ^_^ thank you 😊 this is life changing for me
This showed up on my feed and it was great watching this over dinner. I haven't touched C since undergrad (been with Haskell for I don't know how long now) and it's refreshing to watch some good, honest C code. I hope you continue making videos this coming year, you're great at presenting and it's clear you're experienced. Will share your channel for a boost.
How do you not have a million subscribers is beyond me! This is really great subject. Practical C tutorials are like diamonds. Super valuable and in short supply. Keep going. You're awesome
38:00 I think the right solution for the console output would be "flush" function fprintf(stdout, "message"); flush(stdout); to force it printing the message. stdout is bufferized.
About printf("==== WAITING FOR CONNECTION ====") not works is because printf is LINE BUFFERED that means the printf needs ' ' or the program ends to sends the current buffer to processor to be shown in the screen, grettings from Ecuador :D. I love your channel.
Respect for doing the sometimes stressfull debugging on video. Having a ok understanding of C++, C and networking, I think it is a great video. Where do you get the sys/socket.h and netinet/in.h from? Do these h files have the ping facility?
Hey i know this is an old video and it might be unlikely that you reply to me, but i have a question to ask you now that a few years have passed. I don't know if you are aware of Beej's guide to network programming in C, but basically pretty much everyone says it's the best way to learn network programming in C. In that guide tho, he uses stuff such as getaddrinfo and addrinfo instead of hard coding the information inside of sin_addr. People say that this is the preferable way to program nowadays, but most production code you can find and even code on git make use of the old method so... my question is, what is your take? is it actually better to use the old school method?
I make winsock2 version, the connect is fine, but chrome make several requests to server, it make the response sometime can't reach, anyone have any idea on this?
Is this project needs any additional files from ur previous videos? since I am getting an file not found error for #include and #include . Please help me with this issue.
Are you using Windows? You'll need to use winsock instead of socket.h. I don't know much about the library, but someone on the Discord channel may be able to help!
@@eom-dev Thank u. Please If u can in the future when making such great stuff please consider windows users too, I meant to mention any changes required to make in source code who are on widows. I wish u more likes and subscribers
@@minidupasan1520 Thank you, I appreciate it! To be honest, I think you might want to take a different perspective on this though. Unix is dominant in this space, and I would recommend using a VM of Ubuntu, an old laptop with Linux, or a Raspberry Pi when working on these kinds of projects. These are highly marketable skills - but Windows doesn't speak the same language as everyone else.
The definition outside of the loop is not a solution at all. There is not a lot of work, especially for a MacBook. Stack allocated memory is extremely cheap in terms of speed.
hello eric can you please tell me how can i write my self server i mean what languages and concepts should i learn in order to understand each and everything and able to write server. kindly refer materials and books from where i can learn all these. thank you.
Hi Aleem, it is really going to depend on what kind of server you are trying to set up. Generally speaking, there is probably a pre-built package for what you are trying to set up, so you may have better luck asking in their respective communities. If you are interested in network protocols, then my videos may be more useful to you. I would recommend starting by looking at the HTTP protocol and TLS.
@@eom-dev thank you so much for replying i really appreciate it. it would be very appreciated if you can make video and speak about these things so many other would benefit from that like new guys to computer science like my self. thank you once again.
29:21 This is supper late , but u asked about if there's a cleaner way to print strings/arrays/pointed string , you can use puts(char* ), as it spouse to print a char* type. usage , puts(buffer);
I'm just curious: why don't you use typedef struct? It's save you a lot of typing.... And, why don't you copy/paste your prototypes to avoid all of the typing and potential bugs?
I'm very poor and I have an old PC but I love programming . I thought maybe if I use c I can become a really good developer ^_^ thank you 😊 this is life changing for me
Hey good luck, where are you from?
@rocher-j3b 😎
good luck! programing is really amazing! how is it going for you?
I hope you have an ssd if u dont, buy one for cheap and replace and then install some lightweight linux distro itll run way smooth
Hope your financial situation got better
This showed up on my feed and it was great watching this over dinner. I haven't touched C since undergrad (been with Haskell for I don't know how long now) and it's refreshing to watch some good, honest C code. I hope you continue making videos this coming year, you're great at presenting and it's clear you're experienced. Will share your channel for a boost.
How do you not have a million subscribers is beyond me! This is really great subject. Practical C tutorials are like diamonds. Super valuable and in short supply. Keep going. You're awesome
Thanks Raul! I really appreciate you saying that :)
That is why professor salary is less than singer or comedian :D but the true, if we do video for higher skills that is not for everyone.
Completely agree with this comment
Wow, in first 3 minutes you already grabbed my attention by explaining overuse of OOP like no one else
God bless, I'm a beginner but the sequential teaching makes everything looks as though I was a pro.😂😂🎉❤❤
38:00 I think the right solution for the console output would be "flush" function
fprintf(stdout, "message");
flush(stdout);
to force it printing the message.
stdout is bufferized.
Bro, C code is so clean!!!! I love it.
This video is gem. Thank you for this nice video
Glad you enjoyed it!
43:11 I enjoyed the keystrokes sound over your keyboard
Still on data structure on C, After that I am going straight into this. Thanks
What a cool tutorial!
Thank you so much!
Like seriously
Very cool project! I love low level stuff.
Good stuff Eric, thank you
Content-Length is mandatory header, it should be kept
I think the http standard expects "
" for new lines
About printf("==== WAITING FOR CONNECTION ====") not works is because printf is LINE BUFFERED that means the printf needs '
' or the program ends to sends the current buffer to processor to be shown in the screen, grettings from Ecuador :D. I love your channel.
please how do I implement this in windows, I'm getting errors
Respect for doing the sometimes stressfull debugging on video.
Having a ok understanding of C++, C and networking, I think it is a great video.
Where do you get the sys/socket.h and netinet/in.h from?
Do these h files have the ping facility?
I don't know how to host an HTML file which has an img tag inside it
Please Help
Thank you, Sir 🙏
EOMWS = Eric O Meehan Web Server 😁😉
After writing this server can we put our website on it. Or need something else.
that white background is killing my eyes!
Hey i know this is an old video and it might be unlikely that you reply to me, but i have a question to ask you now that a few years have passed. I don't know if you are aware of Beej's guide to network programming in C, but basically pretty much everyone says it's the best way to learn network programming in C. In that guide tho, he uses stuff such as getaddrinfo and addrinfo instead of hard coding the information inside of sin_addr. People say that this is the preferable way to program nowadays, but most production code you can find and even code on git make use of the old method so... my question is, what is your take? is it actually better to use the old school method?
the socket function returns a -1 if it gives an error
I make winsock2 version, the connect is fine, but chrome make several requests to server, it make the response sometime can't reach, anyone have any idea on this?
same
Is this project needs any additional files from ur previous videos? since I am getting an file not found error for #include and #include . Please help me with this issue.
Are you using Windows? You'll need to use winsock instead of socket.h. I don't know much about the library, but someone on the Discord channel may be able to help!
@@eom-dev I am using windows. Please how can I join to the discord
@@minidupasan1520 Here is a link: discord.gg/PTWecyAbDU
Specifically, I think catsanddogs has done something with winsock, but I could be mistaken.
@@eom-dev Thank u. Please If u can in the future when making such great stuff please consider windows users too, I meant to mention any changes required to make in source code who are on widows. I wish u more likes and subscribers
@@minidupasan1520 Thank you, I appreciate it! To be honest, I think you might want to take a different perspective on this though. Unix is dominant in this space, and I would recommend using a VM of Ubuntu, an old laptop with Linux, or a Raspberry Pi when working on these kinds of projects. These are highly marketable skills - but Windows doesn't speak the same language as everyone else.
The definition outside of the loop is not a solution at all.
There is not a lot of work, especially for a MacBook.
Stack allocated memory is extremely cheap in terms of speed.
I assume its called ipv4 because 2^(4+1)=32 and ipv6 cus 2^(6+1)=128
Have you tried using PHP?
hello eric can you please tell me how can i write my self server i mean what languages and concepts should i learn in order to understand each and everything and able to write server. kindly refer materials and books from where i can learn all these. thank you.
Hi Aleem, it is really going to depend on what kind of server you are trying to set up.
Generally speaking, there is probably a pre-built package for what you are trying to set up, so you may have better luck asking in their respective communities.
If you are interested in network protocols, then my videos may be more useful to you. I would recommend starting by looking at the HTTP protocol and TLS.
@@eom-dev thank you so much for replying i really appreciate it. it would be very appreciated if you can make video and speak about these things so many other would benefit from that like new guys to computer science like my self. thank you once again.
One of the best way of doing debugging is print statements. 😂😂😂 Me too. But on stderr not stdout.
29:21 This is supper late , but u asked about if there's a cleaner way to print strings/arrays/pointed string , you can use puts(char* ), as it spouse to print a char* type.
usage , puts(buffer);
Good...
Is this supports HTTPS ?
bro is genious
"Oh yeah it never works the first time" :D
Thanks!
I'm just curious: why don't you use typedef struct? It's save you a lot of typing.... And, why don't you copy/paste your prototypes to avoid all of the typing and potential bugs?
how to make https ?
ipv5 was never adopted as the standard hence why we ignored it
Nice
What IDE is this ?
xcode
Can I get your source code?
You may! github.com/HomoDeusOfficial/hdelibc/tree/working
too bright my eyes hurt
lol I would agree with you these days.
https server? ssl tls considered
Bro did you not know you need
... or you could do flush(stdout); for printf xd
You've misunderstood. You are clearly using .cpp files instead of only .c files. C++ is not the same as C. Sorry to be the one to tell you.