Socket Programming Tutorials In C For Beginners | Part 2 | Eduonix

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024
  • Learn Programming, anywhere anytime starting at just $1 - bit.ly/Programm...
    Sockets are the basic building blocks in network communication. In this video, you will get details about the HTTP Protocol in Socket programming.
    Get Our Bestselling Paid Courses For Free!
    Projects in MongoDB - Learn MongoDB Building Projects - bit.ly/42IxSWa
    The Full Stack Web Development - bit.ly/3pO6S9r
    Learn To Create WordPress Themes By Building 10 Projects - bit.ly/3pQC9bS
    Projects In Laravel: Learn Laravel Building 10 Projects - bit.ly/3Mxs8sJ
    Learn Machine Learning By Building Projects - bit.ly/3Myw3Wk
    Get Yourself Any Course Of Your Choice For Free
    {Use Coupon Code: YTBFREE}
    Explore Our All Courses - www.eduonix.co...
    Get Our Bestselling Paid Courses For Free!
    Projects in MongoDB - Learn MongoDB Building Projects - bit.ly/42IxSWa
    The Full Stack Web Development - bit.ly/3pO6S9r
    Learn To Create WordPress Themes By Building 10 Projects - bit.ly/3pQC9bS
    Projects In Laravel: Learn Laravel Building 10 Projects - bit.ly/3Mxs8sJ
    Learn Machine Learning By Building Projects - bit.ly/3Myw3Wk
    Get Yourself Any Course Of Your Choice For Free
    {Use Coupon Code: YTBFREE}
    Explore Our All Courses - bit.ly/3BQBf1P
    To learn the basics of Socket Programming visit: goo.gl/kv1VTY
    👉Enjoy Extra 50% off on the Below E-Degrees with certification - (APPLY COPOUN - COL50)
    🔹AI & ML E-degree- bit.ly/2mEUCYC
    🔹MERN Stack Developer E-Degree Program - bit.ly/2pFSz7J
    🔹DevOps E-degree - bit.ly/2J6Gf7u
    🔹Cloud Computing E-Degree - bit.ly/2Hyv5dO
    🔹Cybersecurity E-Degree - bit.ly/2Hyv5dO
    🔹IoT E-degree - The Novice to Expert Program in IOT - bit.ly/3dTtSJP
    🔹Advance Artificial Intelligence & Machine Learning E-Degree - bit.ly/336NwOU
    ★★★The Best courses & Bundles to do with Eduonix with Flat 50% OFF ★★★ ( APPLY COUPON - COL50)
    1.Learn Machine Learning By Building Projects - bit.ly/2MxMSSl
    2.The Complete Web Development Course - Build 15 Projects - bit.ly/32Ah9oW
    3.The Full Stack Web Development - bit.ly/2MZDBRV
    4.Projects In Laravel : Learn Laravel Building 10 Projects - bit.ly/2MAiHtH
    5.Mathematical Foundation For Machine Learning and AI - bit.ly/2N23Eb1
    1.Mighty Digital Marketing Bundle - bit.ly/2X3xK3U
    2.AI and Machine Learning Guru - bit.ly/3okSbFG
    3.Game Development Masterpack - bit.ly/3mdTSTk
    4. Mighty Web Development Bundle 2.0 - bit.ly/3ouO3TA
    ✔ Get Exclusive Flat 30% off on Our Lifetime membership - bit.ly/3dO6oGc ( APPLY COUPON : YTLIFE30)
    #soketprgramming #sockettutorial
    Thank you for watching! We’d love to know your thoughts in the comments section below. Also, don’t forget to hit the ‘like’ button and ‘subscribe’ to ‘Eduonix Learning Solutions’ for regular updates.
    bit.ly/2ITJDQb
    Follow Eduonix on other social networks:
    Facebook: goo.gl/ZqRVjS
    Twitter: goo.gl/oRDaji
    Instagram: goo.gl/7f5DUC
    Linkedin: goo.gl/9LLmmJ
    Pinterest: goo.gl/PczPjp

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

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

    Get Yourself Any Course Of Your Choice For Free
    {Use Coupon Code: YTBFREE}
    Explore Our All Courses - -www.eduonix.com/courses?track=5344920&TH-cam_YTpincomment&TH-cam&

  • @slobaivkovic8910
    @slobaivkovic8910 7 ปีที่แล้ว +41

    Excellent series, really enjoyed watching it, only 2 videos though, I see that there are not so much views on this video so I suspect that this series is not going to be extended which is really a shame, this is best socket C programming basics video I found so far and it would be nice to see what can be build on top of it. Thanks

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

      Thank you so much Sloba...Keep watching and also subscribe us to get updates on latest courses.

  • @paul88146
    @paul88146 6 ปีที่แล้ว +18

    If its a blank screen do as the guy below suggested:
    Make sure your index.html has only one line.
    fgets reads only one line at once.
    The file also has to be on the same folder as your executable.

  • @Eduonix
    @Eduonix  ปีที่แล้ว

    Get Yourself Any Course Of Your Choice For Free
    {Use Coupon Code: YTBFREE}
    Explore Our All Courses - bit.ly/3Ik7bit

  • @vou5178
    @vou5178 6 ปีที่แล้ว +7

    Not all heroes wear capes! Thank you keep going!!

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

      We're glad you found the tutorial helpful! Subscribe for more!

  • @astrolemonade349
    @astrolemonade349 4 ปีที่แล้ว +2

    Awesome videos ! It's sad the series stopped ! Hope one day it will continue !

  • @stevensong6909
    @stevensong6909 6 ปีที่แล้ว +17

    I think if you are using Google Chrome, the browser will continue to buffer. First make sure that your index.html is just one line. Second remove the close(client_socket). For some reason, it receives the http response but doesn't display it on the web browser. After these changes it should work.

    • @eduonixsupport1889
      @eduonixsupport1889 6 ปีที่แล้ว +2

      Thank you so much for sharing. its really helps everyone

    • @dorkosana588
      @dorkosana588 5 ปีที่แล้ว

      Thank you! I was getting a net::ERR_CONNECTION_RESET but my program worked after making these changes.

  • @wandererstraining
    @wandererstraining 4 ปีที่แล้ว +4

    Thanks again for these two videos, they were solid. I'd love to learn to implement multiple processes at once, or event based programming using C, in case you are trying to find more interesting tutorials to make.
    Please keep up the C stuff, it's really good!

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

    These are the best c socket tutorials on TH-cam. Please do more!

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

      Thank you so much! yes we will do more, stay tuned!

  • @Eduonix
    @Eduonix  4 ปีที่แล้ว

    become a Master of trending skills with our brand New Pocket Friendly Bundles & E - degrees - bit.ly/3c2pKG5

  • @abhinavmishra8502
    @abhinavmishra8502 6 ปีที่แล้ว +9

    This is an amazing series, thank you so much ! is there also an advanced course on socket programming ?

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

    5:11 -> ඞ

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

    Black Friday Sale Has Arrived!
    Learn a new skill with us at incredible prices. Get your favourite E-Degrees & Bundles at flat $29.
    Hurry! Shop now. - bit.ly/3c2CvAQ

  • @antonioastorino7488
    @antonioastorino7488 4 ปีที่แล้ว

    Thank you. All great. I had a problem with properly closing sockets but easily googled the solution, which is shutting them down before closing them. I hope this helps others. Let me know if you need more info.

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

    Thank you ...... Nice Tutorial.....

  • @mumk
    @mumk ปีที่แล้ว

    this is god send, thanks!

  • @danpluso
    @danpluso 5 ปีที่แล้ว +5

    If anyone wants to read in a multi-line HTML file, here's what worked for me (change the string sizes accordingly to accommodate your HTML file):
    char buffer[128];
    char response_data[2048] = {'\0'}; //Initialize to '\0' so there's no garbage values since we will append to the end of this string
    while(fgets(buffer, sizeof(buffer), html_data)){
    strcat(response_data, buffer);
    }
    char http_header[4096] = "HTTP/1.1 200 OK

    ";
    strcat(http_header, response_data);

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

      Thank you for sharing. It will help others.

    • @thesilvercreepers
      @thesilvercreepers 3 ปีที่แล้ว

      I knew if I scrolled far enough I would find someone with the answer to my question, thank you

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

      @@thesilvercreepers I cannot overstate this. I was almost giving up till I found this. Great guide there!

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

    Fantastic lecture, thank you sir!

  • @natsagnyamnamkhai749
    @natsagnyamnamkhai749 4 ปีที่แล้ว

    Thanks Super man!
    Excellent series, really enjoyed watching it

  • @anstbt
    @anstbt ปีที่แล้ว

    thank you very helpful 😉😊

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

    Any approach fro Huffman encoding implementation in C/C++ using socket programming

  • @ikaros14472
    @ikaros14472 3 ปีที่แล้ว

    hello, I cant seem to get to know how to connect the httpclient with the httpserver applications
    , the video was great, thanks.

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

    Thank you... You help me very much.. :))
    I'm from Brazil...

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

      Your welcome!! Subscribe for more.

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

    Thank yooooouuuuuuuu!!!!!!!

  • @bumblesby
    @bumblesby 5 ปีที่แล้ว

    This is great, but I would have loved to see just a tad bit more. For example a "stream" approach so that you could send more than 2048 - or any size of bytes. My first thought when seeing this was what if it was more than 2048 bytes? :) Server and Client would need to loop to accommodate for this.

  • @BF3Vienna
    @BF3Vienna 6 ปีที่แล้ว

    Really great and helpful series of tutorials. Thank you a lot for all the effort you've put in there.

    • @Eduonix
      @Eduonix  6 ปีที่แล้ว

      Thanks a lot. Subscribe for more tutorials!

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

    If anyone is having segfaults change the *argv to **argv

  • @akilbozbas
    @akilbozbas 7 ปีที่แล้ว

    great series, i think next thing that u should do is to make a series for web apis in c. that would be greaat. im looking forward for it. im unable to find any resource for that on internet

    • @Eduonix
      @Eduonix  7 ปีที่แล้ว

      Thank you Hamza. You can check out this playlist: goo.gl/dNtYuz Don't forget to subscribe for more videos!

  • @BakhytBakiyev
    @BakhytBakiyev 6 ปีที่แล้ว

    ExcelIent videos! I will wait your next videos about smtp server and client !

    • @Eduonix
      @Eduonix  6 ปีที่แล้ว

      Thank you, subscribe for more tutorials!

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

    Im assuming that to stop the (google chrome) browser from buffering that you would take it out of the infinite loop. Is there another way to close the HTTP connection

  • @afafridaoui4566
    @afafridaoui4566 4 ปีที่แล้ว

    Please do more!

    • @Eduonix
      @Eduonix  4 ปีที่แล้ว

      @Afaf sure! we're working on it! stay tuned.

  • @angphamminh6247
    @angphamminh6247 3 ปีที่แล้ว

    Please can you help me?
    I do the same as you when I compile ./http_server but I cant open Localhost:8001. Can you help me to fix this ? Thanks for your time

  • @sanaeram1246
    @sanaeram1246 7 ปีที่แล้ว

    thanks it was really useful

    • @Eduonix
      @Eduonix  7 ปีที่แล้ว

      Thank you Sana! Subscribe for more tutorials.

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

    struct sockaddr_in server_addr; //incomplete type is not allowed

  • @greggorlen8207
    @greggorlen8207 6 ปีที่แล้ว +2

    The line inet_aton(address, &remote_address.sin_addr.s_addr); didn't compile for me, but inet_aton(address, &remote_address.sin_addr);
    worked (ref: www.gta.ufrj.br/ensino/eel878/sockets/inet_ntoaman.html).
    Thanks for the tutorials!

  • @puniayash
    @puniayash 3 ปีที่แล้ว

    I just can't get over the fact that he didn't use intellisense at once and did all of that XD
    Great vid tho' :D

  • @Drqonic
    @Drqonic 4 ปีที่แล้ว

    Where can I learn about Raw sockets?

  • @abreezy1st
    @abreezy1st 5 ปีที่แล้ว

    So how do i implement this with a URL request? can the server respond with whats on the page? Just wondering if thats possible can you please answer? thank you!

  • @volkerking5932
    @volkerking5932 3 ปีที่แล้ว

    Super Video - but under Firefox 88.0.1 doesn't work there is a massive error - "character coding is wrong... blablabla etc..." we search the problem but there is no way to find out why we send the wrong coding for german characters. Did you know why is this so?
    Also a interest problem is that if you compile the http_server.c on my Min20.1 with port 80 you never can run it on this machine. There is now port 54377 or a other port. If you change the port nubmer to i.e. 8001 or 4444 and compile it again that worked well but not with port 80. netstat -anput show you all programms liekt he ./http_server and the port number but port 80 don't will work on this machine!? why is that so? If I stop the ./http_server there is no other programm that used by port 80 on this machine also no development system is running like XAMPE or so. What can that be? The http.client work on port 80 and I can call google.at here in my Country. One das later I found Out that the Port will Change of you've a User of you start the sudo ./http_server then Port 80 Stay! Best Regards Volker

  • @SikarinPunsawat
    @SikarinPunsawat 6 ปีที่แล้ว

    1 question, I can get response 200ok when I run code in my home but when I go another place like university I always get 302 found . In same address (but local server it's work every where)
    thank you

    • @eduonixsupport1889
      @eduonixsupport1889 6 ปีที่แล้ว

      You can check this link airbrake.io/blog/http-errors/302-found to solve this above problem.

  • @quaylynrimer11
    @quaylynrimer11 7 ปีที่แล้ว +2

    I got the same code you put I had to add #include for the close() to work after the tutorial on this video I was not able to pull it up in my browser any idea? I am running Ubuntu 17.04

    • @Arghandevol
      @Arghandevol 6 ปีที่แล้ว

      I have some problem did you fix that ?

    • @tijekusnadi8169
      @tijekusnadi8169 6 ปีที่แล้ว

      i had the same problem and i changed it to HTTP/1.0,

  • @ujjvwalagarwal5925
    @ujjvwalagarwal5925 4 ปีที่แล้ว

    When I typing the id address of coursera.org .It giving me 400 bad request error using your code. Please anyone help?

  • @dark_red_blood
    @dark_red_blood ปีที่แล้ว

    Thank you

  • @anupamkarn1009
    @anupamkarn1009 7 ปีที่แล้ว

    how to print the whole entity body (i.e "last modified, date etc") in server response?

  • @divyagurumoorthy3354
    @divyagurumoorthy3354 3 ปีที่แล้ว

    Hi. Thank you so much for the video :)
    When I run the client, it sends back the sample "index.html" file which I created "Server html" but in the video it displays the response from google. What am i missing here? I get the same response even if I don't pass any IP address in the command line or if i enter some random text as an argument.

    • @Eduonix
      @Eduonix  3 ปีที่แล้ว

      Thank you for watching the video. Now you can learn courses for Free. Eduonix has come up with the subscription plan - Infiniti. For a limited time, we are offering 1 Month Free Subscription, where you can learn the course you are desperately looking for, as well as 2000+ other courses for Free.
      Click the link to get your free subscription: bit.ly/2OuM9EY

  • @radio_electronics4047
    @radio_electronics4047 4 ปีที่แล้ว +2

    The httpclient code does not work and it seems to be from a time where IPv4 addresses were the norm.

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

      The green text on black ground throws us back to the 80s where networking was simpler.

  • @ronnylandsverk5037
    @ronnylandsverk5037 6 ปีที่แล้ว

    It seems many have problems with the http server when using a browser as a client.
    I can "telnet" to the server, e.g. "telnet localhost 8001" and get response
    HTTP/1.1 200 OK
    welcome to HTTP server
    but when i connect via a browser (localhost:8001) the browser is blank...
    However, when replacing close() with pclose(), then the browser will display the html code.
    Why ? BTW I use Cygwin64 and the compiler warned about close()...

    • @eduonixsupport1889
      @eduonixsupport1889 6 ปีที่แล้ว

      You can download the resource file from the link and update your code. s3.amazonaws.com/edu-resources/LearnSocket-Programming-inCfromScratch/resources-SocketsinC.zip let us know if you have any issue.

    • @melih2496
      @melih2496 8 หลายเดือนก่อน

      hey, im having the same issue. and i dont have a pclose() function in the headers. how can i solve it?

  • @UmairAli
    @UmairAli 7 ปีที่แล้ว

    what compiler you would recommend for windows user ? this for cuz i have visual stdio 2013 and dev c ++ while having a problem in code blocks , can you put a tutorial and give a link also plz thanks ?

    • @eduonixsupport1889
      @eduonixsupport1889 7 ปีที่แล้ว

      You can use winsock for socket programming in windows. check out the link given below.
      searchwindowsserver.techtarget.com/definition/Winsock

  • @mohshafi3032
    @mohshafi3032 6 ปีที่แล้ว

    How the ./http_server is accessing or linked that makes the output from index.html, could you please show the Makefile, are you listing the index.html in Makefile? How the http_server is accessing the index.html. If you could explain I really appreciate it. Thank you.

    • @eduonixsupport1889
      @eduonixsupport1889 5 ปีที่แล้ว

      Please refer to the link mentioned below to get some idea about your issue.
      stackoverflow.com/questions/43569635/how-does-my-html-page-have-access-to-socket-io-on-client-side

  • @hammadzafar2587
    @hammadzafar2587 4 ปีที่แล้ว

    When i run the http client program to send an http request to google server, i get the response: "HTTP/1.0 400 Bad Request". Address resolution, connection establishment, request send & response reception functions are all functioning properly. still i am getting the Bad Request message. I'm using the exact same code in the video.

    • @antonioastorino7488
      @antonioastorino7488 4 ปีที่แล้ว

      If you are on a Mac, you may want to remove
      and use

      to end your request. Let me know if this helps.

  • @MrGreeneyes77
    @MrGreeneyes77 4 ปีที่แล้ว

    Why does the server bind its address to port 8001 but the client connects to remote port 80 ?

  • @psykjavier
    @psykjavier 4 ปีที่แล้ว

    amazing tutorial, thank sir for sharing your knowlegde, but to those whom is having some issues:
    open your localhost address on firefox, it works for me, since when i open the web page in chrome i get the response http 200 ok, however i can't visualize the web page, the browser does download automatically the source as data file anyone know why occurs this ?

    • @muratcosar3873
      @muratcosar3873 4 ปีที่แล้ว

      Maybe you need add Content-Type header "Content-Type: text/html" .

  • @flyingspaghettimonster3791
    @flyingspaghettimonster3791 6 ปีที่แล้ว

    i am unable to retrieve any html file using http client that you made.It keeps on giving connection refused error.

    • @eduonixsupport1889
      @eduonixsupport1889 6 ปีที่แล้ว

      Maybe the port you are trying to connect to is not open. So either you are connecting to the wrong IP address, or to the wrong port. Please check carefully.

  • @chidanandapanigrahy8251
    @chidanandapanigrahy8251 6 ปีที่แล้ว

    I am getting 503 service unavailable and some time 400 error. I used google.com and ifttt.com
    please let me know where i did mistake.

    • @HelepodGTech
      @HelepodGTech 6 ปีที่แล้ว

      Post your code in pastebin.com and I can take a look.

  • @ravishkumar9032
    @ravishkumar9032 6 ปีที่แล้ว

    what is bzero() function please explain with example.

    • @eduonixsupport1889
      @eduonixsupport1889 6 ปีที่แล้ว

      SYNOPSIS
      [XSI] [Option Start] #include
      void bzero(void *s, size_t n); [Option End]
      DESCRIPTION
      The bzero() function shall place n zero-valued bytes in the area pointed to by s.
      RETURN VALUE
      The bzero() function shall not return a value.APPLICATION USAGE
      The memset() function is preferred over this function.
      For maximum portability, it is recommended to replace the function call to bzero() as follows:
      #define bzero(b,len) (memset((b), '\0', (len)), (void) 0)Check below link it may help you
      stackoverflow.com/questions/29182966/do-you-have-a-simple-bzero-example

    • @awes0meness123
      @awes0meness123 6 ปีที่แล้ว

      set buffer to zero

    • @shubyy5149
      @shubyy5149 6 ปีที่แล้ว

      It sets a region of memory, specified by a address and the length of bytes, to 0

  • @minhazurrahman3809
    @minhazurrahman3809 6 ปีที่แล้ว

    While executing I am getting an error of Segmentation Fault Core dump. Please suggest me what to do

    • @chunghanlin5248
      @chunghanlin5248 6 ปีที่แล้ว

      which file did you execute? client or http_server?

    • @eduonixsupport1889
      @eduonixsupport1889 6 ปีที่แล้ว

      This might be caused if you are executing the wrong file.

    • @catalin2709
      @catalin2709 5 ปีที่แล้ว

      I am getting this too

  • @barisgunduz4338
    @barisgunduz4338 5 ปีที่แล้ว

    I get a blank screen when I go to localhost:8001 . Anyone has an idea why ?

    • @mal0931
      @mal0931 3 ปีที่แล้ว

      you need you html one line

  • @anupamasodhi6715
    @anupamasodhi6715 6 ปีที่แล้ว

    Hey! When I try to open the page on the browser, it shows a blank page :3 help!

    • @eduonixsupport1889
      @eduonixsupport1889 6 ปีที่แล้ว

      Can you elaborate your question?

    • @anupamasodhi2590
      @anupamasodhi2590 6 ปีที่แล้ว

      Eduonix Support the html page loads up on the browser without an error or timeout but is not displaying any content, its just a blank white page

    • @eduonixsupport1889
      @eduonixsupport1889 6 ปีที่แล้ว

      You can download the resource from this link s3.amazonaws.com/edu-resources/LearnSocket-Programming-inCfromScratch/resources-SocketsinC.zip

  • @f_ftactics7928
    @f_ftactics7928 7 ปีที่แล้ว

    my localhost:8080 keeps loading and data won't show

    • @eduonixsupport1889
      @eduonixsupport1889 7 ปีที่แล้ว

      Have you checked your code?

    • @shivam57709
      @shivam57709 7 ปีที่แล้ว

      my localhost:8001 also keeps loading.... i checked my code it is correct #include
      #include
      #include
      #include
      #include
      #include
      int main(){
      FILE *html_data;
      html_data=fopen("index.html","r");
      char response_data[1024];
      fgets(response_data,1024,html_data);
      char http_header[2048]="HTTP/1.1 200 OK

      ";
      strcat(http_header,response_data);
      //create a socket
      int server_socket;
      server_socket=socket(AF_INET,SOCK_STREAM,0);
      //specify address for socket
      struct sockaddr_in server_address;
      server_address.sin_family=AF_INET;
      server_address.sin_port=htons(8001);
      server_address.sin_addr.s_addr=INADDR_ANY;
      //bind the socket to specified IP and port
      bind(server_socket,(struct sockaddr *) &server_address,sizeof(server_address));
      //listen
      listen(server_socket,5);
      int client_socket;
      //send or receive
      while(1){
      client_socket=accept(server_socket,NULL,NULL);
      send(client_socket,http_header,sizeof(http_header),0);
      close(client_socket);
      }
      return 0;
      }

    • @tamelo
      @tamelo 7 ปีที่แล้ว +6

      Make sure your index.html has only one line.
      fgets reads only one line at once.
      The file also has to be on the same folder as your executable.

    • @Arghandevol
      @Arghandevol 6 ปีที่แล้ว

      I tried you code, nothing happining when I run your code
      on ubuntu

    • @stevensong6909
      @stevensong6909 6 ปีที่แล้ว

      I think if you are using Google Chrome, the browser will continue to buffer. First make sure that your index.html is just one line. Second remove the close(client_socket). For some reason, it receives the http response but doesn't display it on the web browser.

  • @SikarinPunsawat
    @SikarinPunsawat 6 ปีที่แล้ว

    Thank you alot your video very useful.

    • @Eduonix
      @Eduonix  6 ปีที่แล้ว

      We're glad we could help! Subscribe to stay updated on latest tutorials!