C++ Web Server from Scratch | Part 1: Creating a Socket Object

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024

ความคิดเห็น • 29

  • @EverythingExceptThat
    @EverythingExceptThat 3 ปีที่แล้ว +14

    Great video, really impressed by the volume & quality of content you've put out, can't wait for you to blow up :)

    • @eom-dev
      @eom-dev  3 ปีที่แล้ว +1

      That is so nice of you to say, thank you!

  • @yashumaurya4500
    @yashumaurya4500 2 ปีที่แล้ว +3

    Bro this was really great, I am in high school and can still understand everything. Very simplified explanation. Thanks

    • @MeiyuZhang
      @MeiyuZhang 11 หลายเดือนก่อน +1

      You are in high school but start learning things like this are impressive.

  • @Miles-co5xm
    @Miles-co5xm 2 ปีที่แล้ว +5

    your channel has awesome content , i have never encountered such an account yet

    • @eom-dev
      @eom-dev  2 ปีที่แล้ว +1

      Thank you! I really appreciate that :)

  • @amosdevstudio7789
    @amosdevstudio7789 10 หลายเดือนก่อน +2

    THANK YOUUUUUUUUU!!!!!!!!!!!!!!!!

  • @eduardabramovich1216
    @eduardabramovich1216 11 หลายเดือนก่อน +1

    I wish you could arrange your contents into playlists

  • @evans8245
    @evans8245 3 ปีที่แล้ว +3

    Gr8 Explanation m8

    • @eom-dev
      @eom-dev  3 ปีที่แล้ว +2

      Very much appreciated, thank you!

  • @vanhasteljonas
    @vanhasteljonas ปีที่แล้ว +1

    Where does the namespace HDE come from? Because want it to give it a more meaningful name. Do you have something in mind?

  • @noeljose
    @noeljose ปีที่แล้ว +1

    0:00 flash bang!

  • @Kravi_on
    @Kravi_on 5 หลายเดือนก่อน

    Thank you 😊

  • @martinpfister9130
    @martinpfister9130 2 ปีที่แล้ว +1

    The code is not available under the given link in github. Can you please share again?

  • @sourcephy6208
    @sourcephy6208 3 ปีที่แล้ว +1

    Thank you...

  • @ashwinalagiri-rajan1180
    @ashwinalagiri-rajan1180 2 ปีที่แล้ว +2

    14:35 By byte order, do you mean endianness of the host system vs network?

    • @logangraham2956
      @logangraham2956 2 ปีที่แล้ว

      yes, this is what he means.
      funny enough though, if your compiling amd cpu instead of a intel cpu you technically don't need this function since amd cpus run big endian and that's what the internet uses.
      but still probably include it just in case you ever compile on a different platform.

  • @asdomain4503
    @asdomain4503 2 ปีที่แล้ว +1

    Can I follow this tutorial on windows OS??

  • @jonathanabraham6503
    @jonathanabraham6503 3 ปีที่แล้ว +1

    hi there. trying to follow allong your video. all new to cpp. i wanted to know where/how to download the "socket" lib ? i'm on windows using vcpkg and vscode (with the c++ compiler). thanks for your help

    • @eom-dev
      @eom-dev  3 ปีที่แล้ว

      The sockets lib comes standard on Unix machines, but on Windows you need the "Winsock" library to do network programming for native Windows or Cygwin to emulate Unix machines. There is a good post on Stack Overflow about this:
      stackoverflow.com/questions/2952733/using-sys-socket-h-functions-on-windows
      My personal recommendation would actually be a bit different. I would advise either using VirtualBox to run an instance of Linux Ubuntu or get a Raspberry Pi (they are cheap) to have a dedicated Linux machine. Linux is the standard on the web. If you are interested in programming servers, you would really benefit from becoming comfortable in that environment.
      Let me know if there is anything else I can do to help!

    • @jaymesc4436
      @jaymesc4436 3 ปีที่แล้ว +1

      @@eom-dev Another good alternative to a vm/dual booting is to use WSL2 it basically allows you pull up a Linux bash shell in a command prompt by just entering bash

  • @chewico3d133
    @chewico3d133 2 ปีที่แล้ว +3

    Nice video but it kills me the white theme

    • @eom-dev
      @eom-dev  2 ปีที่แล้ว +1

      Agreed. The bug has been fixed in current releases.

    • @asdomain4503
      @asdomain4503 2 ปีที่แล้ว

      Can i follow this tutorial and implement on windows OS

  • @vectorv750
    @vectorv750 2 ปีที่แล้ว +1

    Hi, I am a non-techi so I don’t understand much. I have a situation. I ordered a web creator to creat a website for me, his job is almost done he just have to upload it into a sever and he is done with my order. I also have a friend who is also into IT he said that in addition to thing that the web creator has to upload my website into a server I also have to ask the web designer to give me the code, is my friend explain to me that if later I want to update some functions, first the changes with be done to the source code then it will be uploaded into the server. I asked the web creator to give me the source code of the website as well but he said their is no need for him to give me the source code because the code already will be in the server therefore if I want to modify it I can do it in the server itself. I am kind of confused and dot know what to do, could anyone who understand this matter tell me what should I do. Thanks in advance.

    • @lyrs88
      @lyrs88 2 ปีที่แล้ว

      A website is basically written code inside of textfiles. When your developer uploads the "website" to your server, he actually uploads the code files and the server is going to interpret these files as a website. You can just connect to your server (via FTP for example) and download the code files.
      I think it would be best to tell your developer that you need the code and it would be easiest if he sent it directly to you.

    • @vectorv750
      @vectorv750 2 ปีที่แล้ว

      @@lyrs88 Thank you very much for your help I really appreciate. Could you also please suggest me what would be the best way/device to get the code into. I mean should I ask him to give it to me in a usb drive, burn it into a CD or upload it into a cloud?

    • @lyrs88
      @lyrs88 2 ปีที่แล้ว

      @@vectorv750 That doesnt really matter, whatever you prefer. I think an upload to a cloud would be the easiest for everybody?

    • @vectorv750
      @vectorv750 2 ปีที่แล้ว +1

      @@lyrs88 thanks a lot. I really appreciate your help.