Socket Programming in C for Beginners | Group Chat Application | Multi Threaded + Multiple Users|E4|

Поділитися
Вставка
  • Опубліковано 8 лют 2025
  • in this episode, we will learn socket programming in c language by writing a group chat application from scratch that multiple concurrent clients can connect and talk to each other.
    this series is the ultimate Socket Programming full course,
    it includes explaining :
    what is socket programming,
    what is ipc or inter process communication
    what is tcp and udp and tcp vs udp,
    what is Berkeley Sockets,
    and tcp and udp socket programming in 4 major languages, in c and C sharp and python and java
    and we will write chat application and http server and http client with socket programming in java and c and c sharp and python.
    each episode will explain a standalone section.
    by watching this series, you could master the socket programming from scratch and step by step by in depth explanation.
    GitHub Repo: github.com/mas...
    🚧🚧🚧🚧🚧🚧🚧🚧
    Assets That have been used in this series is free licenced by www.freepik.com and the title of assets are:
    all-country-flags-euro-cup
    book-notebook-doodle-hand-drawn-icon-symbol-education-concept
    cardboard-boxes-icon-collection
    cracked-metal-pipe-flat-design
    curve-winding-roadway-background
    email-campaign-concept-illustration
    happy-couple-resting-sofa-armchair-living-room-reading-book-watching-movie-laptop
    happy-family-cleaning-apartment
    illustration-set-post-delivery
    people-spending-time-living-room
    3351
    rabbit-runs-fast-turtle-runs-slow
    set-window-elements-design-architectural-construction-drawings-illustration-black-color-isolated-white-background
    workers-construction-site-dressed-protective-vests-helmets
    business-men-drive-side-photos-cars
    car-dashboard-radio-closeup-woman-sets-up-radio-while-driving-car
    driver-driving-car-interior-view
    rabbit-runs-fast-turtle-runs-slow
    face-expressions-illustrations-emotions-feelings
    flat-lay-chat-bubbles-with-telephone-receiver
    kissclipart-form-png-icons-clipart-computer-icons-clip-art-b4ba062c9a050b32
    kisspng-c-foreach-loop-while-loop-conditional-c-c-sharp-array-dimensional-single-dimensiona-5c79fe607321d9.0852754315514988484716
    mailboxes-apartment-building
    man-hand-holding-virtual-world-with-internet-connection-metaverse-global-business-marketing-banking-financial-pass-thru-application-technology-concept
    muscular-car-service-worker-repairing-vehicle
    person-placing-blue-cassette-tape-music-player
    two-hesitant-unshaven-man-dissatisfied-woman-shrug-shoulders-feel-unsure-have-doubt-while-make-decision

КОМЕНТАРІ • 91

  • @SalmanKhan-qp5gz
    @SalmanKhan-qp5gz Рік тому +44

    If every one explains like you I can say that every one will be a programmer. Appreciate your hard work sir. Please keep uploading.

  • @getakanda
    @getakanda 8 днів тому +1

    In 2003 when we were undergraduates, there was no internet in the lab, and we had this type of terminal chat thing to pass the boring lectures… 😂

  • @RakeshSolanki1
    @RakeshSolanki1 Рік тому +4

    I thought it is a rocket science but you presented is really easy to understand.
    You could explain that easy because you must have very much basic knowledge, and you didn't even use any boiler plate code(really great way to teach). Really appreciate your work. Thank you so much.

  • @pmAdministrator
    @pmAdministrator 8 місяців тому +14

    Hey, I usually don't comment under any videos, but after I watched yours, I had to let you know you're a very good and talented teacher.
    It's very hard to find videos in which the programmer tells you about everything they write, what it does and why they use it.
    Great video, thank you.

  • @pawanbhadana7621
    @pawanbhadana7621 2 роки тому +18

    great lecture brother, got the key idea how multithreading works in socket programming , keep posting videos like that.

    • @STUDevLantern
      @STUDevLantern  2 роки тому

      thanks.i’m glad that it was helpful.i will try make better videos

  • @santiagolerin
    @santiagolerin Рік тому +4

    Ok, so I came here AFTER reading through the manuals and being a little confused, but this top-tier lecture actually helped me a lot

  • @adityabanka_iso
    @adityabanka_iso Рік тому +2

    I have done some socket programming in JAVA, recently needed for C, couldn't find anything. Then I found your videos, this is the most detailed explanation of sockets and threads in C that I have some across

  • @tasicsara5
    @tasicsara5 Рік тому +6

    Thank you so much for this video!! It's the best one on sockets in C I've watched, really detailed. Now I understand everything completely. I'll definitely follow you and check other videos. Have a great day!

  • @MarcoAurelio-sv2tk
    @MarcoAurelio-sv2tk 6 місяців тому +1

    Awesome video. I love the fact that you explain everything. Most tutorials don't do that

  • @rachitpandey9591
    @rachitpandey9591 6 місяців тому

    Hello there,
    I just came here just after watching other creator socket video but your is best ...
    I am more motivated to deep dive in the c lang

  • @ANKIT_KUMAR_WORK
    @ANKIT_KUMAR_WORK 5 місяців тому

    Your teaching style is incredibly clear and concise, making complex concepts easy to understand. Thank you for breaking things down so simply! 👍👍👍👍👍👍👍👍👍👍

  • @vladkizel2370
    @vladkizel2370 5 місяців тому

    Great intro into network socket programming! Thank you so much!!!

  • @kushalpawar9571
    @kushalpawar9571 10 місяців тому

    Extremely helpful! I could create my project on multi client-server using multithreading thanks to you

  • @eliasebner3595
    @eliasebner3595 Рік тому

    underrated vid lmao couldn't find anything remotely close to being this good

  • @BlindTV.official
    @BlindTV.official Рік тому +1

    you are best teacher bro u know i loved this really❤

  • @On.Jonathan
    @On.Jonathan Рік тому +1

    Awsome lecture. Keep the work up. I needed to say it rsrs.

  • @justaszakarauskas6068
    @justaszakarauskas6068 Місяць тому +1

    I really like this content :)

  • @AnkurArora-vk4um
    @AnkurArora-vk4um Рік тому +1

    Very Good Explanation.. Make more videos like this on Socket Programming..

  • @Scufdavid12
    @Scufdavid12 Рік тому +2

    thanks just got into C some days ago and discovered about sockets and got really interested, didn't found any from scratch comprehensible tutorials and yours was really good, will you continue?

    • @STUDevLantern
      @STUDevLantern  Рік тому

      i'm kinda busy at the moment, but i'm not sure whether i'll be able to continue at the moment

  • @CodeWithNasir
    @CodeWithNasir 2 роки тому +2

    I just came back to this video, and WOW!, I just surprised, You are a great teacher.

  • @chasebrown917
    @chasebrown917 Рік тому +1

    Thanks! This is fantastic

  • @kanav51
    @kanav51 4 місяці тому

    Amazing explanation!

  • @CodeWithMuhammadReza
    @CodeWithMuhammadReza Рік тому +1

    so descriptive and helpful , tnks

  • @micheleserafini2442
    @micheleserafini2442 Місяць тому

    Great video !

  • @senemyildiz.
    @senemyildiz. Рік тому

    Great explanation thank you for your sharing.

  • @josht7238
    @josht7238 7 місяців тому

    thank you so much, great tutorial!!!

  • @md_nawshin_zaman
    @md_nawshin_zaman Рік тому

    The video and content quality is supper. You will become a great creator soon if continue

  • @DxYPINS
    @DxYPINS 5 місяців тому

    Thx bro this is really helpful

  • @thqthq9999
    @thqthq9999 Рік тому +1

    Great job

  • @GoUrAvpandey-g7r
    @GoUrAvpandey-g7r 9 місяців тому

    thank it was really helpful ...............

  • @matthew9765
    @matthew9765 8 місяців тому

    This is great, thx so much

  • @vebve
    @vebve Рік тому

    great explanation and application example! Thank you

  • @ledrake8590
    @ledrake8590 3 місяці тому

    What OS are you using , it looks so pretty

  • @dark_red_blood
    @dark_red_blood Рік тому

    Thamks so much man, you are really the best channel on youtube, and an extremely good teacher.

  • @M-ahjestic
    @M-ahjestic Рік тому

    im listening with headphones on and i flinch every time the transition screen comes up hahah. Anyways, thank you for this video! its helping me in a school lab (:

  • @CodeWithNasir
    @CodeWithNasir 2 роки тому +1

    Great as always ❤

  • @shodan4235
    @shodan4235 Рік тому

    Amazing tutorial. +1 sub

  • @someguy-missing
    @someguy-missing 4 місяці тому

    that "buffer[amountrecived]=0 was interesting i didn't know

  • @dhyey2316
    @dhyey2316 Рік тому +1

    can you share some resources like books or any other thing from where i can learn socket programming? Please reply my comment. It would be very grateful

  • @sakulm
    @sakulm Рік тому +1

    How did you add the library ?

  • @abhishektrivedi4604
    @abhishektrivedi4604 4 місяці тому

    Hello can you make a video on Http protocol and also make a http server

  • @slimergamerslimer8307
    @slimergamerslimer8307 6 місяців тому

    Hi, I was wondering how did you set it up to show that kind of method documentation in clion? Just started using it and I don’t have it.

  • @iceyrazor
    @iceyrazor 10 місяців тому

    nice vid. it worked for me but dear god the abstraction.

  • @gregoire4188
    @gregoire4188 Рік тому +1

    nice

  • @marciax30
    @marciax30 Рік тому

    Hi, great video! Is it a way to build and run it from command window? What steps should I do to run it without IDE?

    • @eddi-y4e
      @eddi-y4e Рік тому

      You can just compile using gcc and link what is required I haven't fully finished the video but its worked for me so far

  • @Mhmhind
    @Mhmhind Рік тому

    Can we establish a connection with Wss URL in c or c++ directly as we did for with IPV4?

  • @md_nawshin_zaman
    @md_nawshin_zaman Рік тому

    My know what IDE you are using and how to setup the environment?
    I really like the suggestion you are getting from the IDE

  • @PavloTkach-bw7fe
    @PavloTkach-bw7fe 9 місяців тому

    Can we use this way for any kind of operation systems? Or what are the limits of this approach? And I can use this method in C++, can't I?

  • @AryanRaj-l6r
    @AryanRaj-l6r Рік тому

    can we use select(),and fd_Set to use non blocking calls,and if there is non blocking architecture i think then we don't need threading. can you share your thoughts and opinion ,or can we create these servers without threading?

  • @CoolestPossibleName
    @CoolestPossibleName Рік тому

    I'm stuck here 42:32 . I'm not getting any output (or error message) help
    Is it because I'm using linux in wsl?
    also I don't know anything about cmake or header files. I made a c file, put the common code and and included in the main files.

  • @omotoshooluwabusayo3193
    @omotoshooluwabusayo3193 2 роки тому +1

    Please, can you make another video tutorials on Threads in C language?

    • @STUDevLantern
      @STUDevLantern  2 роки тому

      i’ll do the moment i get some time.i’m busy doing a project at the moment

  • @LeFede
    @LeFede 10 місяців тому

    is it compatible with windows?

  • @thaingo1202
    @thaingo1202 Рік тому

    This tututoial is going to help me I reckon. 😢

  • @hjayawardhana5897
    @hjayawardhana5897 9 місяців тому

    What is that app ‘CL’

  • @vanannguyen1534
    @vanannguyen1534 2 роки тому +1

    Sir, how to make GUI for it ?

  • @RajatKumar-ml8nz
    @RajatKumar-ml8nz Рік тому

    What application and operating system are you using

  • @dark_red_blood
    @dark_red_blood Рік тому

    Holy shit, best channel on youtube

  • @RajatKumar-ml8nz
    @RajatKumar-ml8nz Рік тому +1

    How did you add 30:29

  • @MosiurRahman-dl5ts
    @MosiurRahman-dl5ts 2 роки тому +3

    Why skype?

  • @dibyarupdutta7087
    @dibyarupdutta7087 2 роки тому +1

    It would be a big help if you could post the code somewhere!

    • @STUDevLantern
      @STUDevLantern  2 роки тому +1

      off course.here you are, the github repo:
      github.com/masoudy/CSocket

  • @rul1175
    @rul1175 Рік тому

    Amazing info but the monotone voice is making a number in my ADHD.

  • @grenadier4702
    @grenadier4702 Рік тому +3

    function names 💀

  • @jejejejejejejejejeh
    @jejejejejejejejejeh 6 місяців тому

    blagh

  • @dark_red_blood
    @dark_red_blood Рік тому

    The only reason you have little subscribers is because you are censored for giving away so much information for free.

  • @wasekaug
    @wasekaug Рік тому +14

    Hard to understand when you are debugging while you go. Plan your tutorial better and know what you want to present instead of doing it on the fly. Also, you shouldn't use your IDE to extract and create function and instead assume no one is using the same IDE as you. Instead, re-write it line by line. I'm sure it is my lack of understand of the C programming language, but you lost me as soon as you started writing your C server. You should teach how to write all of those functions from the get go instead of changing the code up near the end

    • @dark_red_blood
      @dark_red_blood Рік тому +1

      I was glad when i found his vid, now I'm stuck on this issue for two days

    • @STUDevLantern
      @STUDevLantern  Рік тому +14

      you are right, i’ll do my best to take into account all of the issues that you mentioned, thanks for your productive critical point of views 🙏🙏🌺

    • @rickperez8975
      @rickperez8975 Рік тому +4

      This video is great. I think @wasekaug just needs to learn more on his own so certain concepts don’t seem so hard. I’ve been there before.

    • @teioh.
      @teioh. 9 місяців тому

      9

    • @aragorn420
      @aragorn420 8 місяців тому +2

      Let’s see your tutorial videos