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

  Переглядів 45,831

STUDevLantern

STUDevLantern

Рік тому

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/masoudy/CSocket
🚧🚧🚧🚧🚧🚧🚧🚧
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

КОМЕНТАРІ: 67
@SalmanKhan-qp5gz
@SalmanKhan-qp5gz 4 місяці тому
If every one explains like you I can say that every one will be a programmer. Appreciate your hard work sir. Please keep uploading.
@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!
@santiagolerin
@santiagolerin 9 місяців тому
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
@satvikracharla7117
@satvikracharla7117 5 місяців тому
Thanks. This is a realy good tutorial that helped me get started!
@senemyildiz.
@senemyildiz. 3 місяці тому
Great explanation thank you for your sharing.
@BlindTV.official
@BlindTV.official 7 місяців тому
you are best teacher bro u know i loved this really❤
@AnkurArora-vk4um
@AnkurArora-vk4um Рік тому
Very Good Explanation.. Make more videos like this on Socket Programming..
@kushalpawar9571
@kushalpawar9571 25 днів тому
Extremely helpful! I could create my project on multi client-server using multithreading thanks to you
@eliasebner3595
@eliasebner3595 7 місяців тому
underrated vid lmao couldn't find anything remotely close to being this good
@jonathanonwards2921
@jonathanonwards2921 6 місяців тому
Awsome lecture. Keep the work up. I needed to say it rsrs.
@RakeshSolanki1
@RakeshSolanki1 3 місяці тому
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.
@md_nawshin_zaman
@md_nawshin_zaman 9 місяців тому
The video and content quality is supper. You will become a great creator soon if continue
@ecstasyhacks4279
@ecstasyhacks4279 4 місяці тому
great video and explanation. thanks
@chasebrown917
@chasebrown917 4 місяці тому
Thanks! This is fantastic
@thqthq9999
@thqthq9999 Рік тому
Great job
@user-oy7ky9zk9l
@user-oy7ky9zk9l 13 днів тому
thank it was really helpful ...............
@shodan4235
@shodan4235 4 місяці тому
Amazing tutorial. +1 sub
@CodeWithNasir
@CodeWithNasir Рік тому
I just came back to this video, and WOW!, I just surprised, You are a great teacher.
@STUDevLantern
@STUDevLantern Рік тому
Thank you! 😃
@pawanbhadana7621
@pawanbhadana7621 Рік тому
great lecture brother, got the key idea how multithreading works in socket programming , keep posting videos like that.
@STUDevLantern
@STUDevLantern Рік тому
thanks.i’m glad that it was helpful.i will try make better videos
@vebve
@vebve 11 місяців тому
great explanation and application example! Thank you
@STUDevLantern
@STUDevLantern 10 місяців тому
Glad you enjoyed it!
@CodeWithNasir
@CodeWithNasir Рік тому
Great as always ❤
@STUDevLantern
@STUDevLantern Рік тому
Thanks again!
@CodeWithMuhammadReza
@CodeWithMuhammadReza Рік тому
so descriptive and helpful , tnks
@STUDevLantern
@STUDevLantern Рік тому
Glad it was helpful!
@Scufdavid12
@Scufdavid12 Рік тому
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
@adityabanka_iso
@adityabanka_iso 9 місяців тому
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
@jayamgupta7843
@jayamgupta7843 7 місяців тому
Istg this tutorial is top tier
@iceyrazor
@iceyrazor Місяць тому
nice vid. it worked for me but dear god the abstraction.
@Mhmhind
@Mhmhind 7 місяців тому
Can we establish a connection with Wss URL in c or c++ directly as we did for with IPV4?
@gregoire4188
@gregoire4188 Рік тому
nice
@user-jq9dv5gx6k
@user-jq9dv5gx6k 6 місяців тому
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?
@dark_red_blood
@dark_red_blood Рік тому
Thamks so much man, you are really the best channel on youtube, and an extremely good teacher.
@DafuqLeenuh
@DafuqLeenuh 11 місяців тому
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 (:
@STUDevLantern
@STUDevLantern 10 місяців тому
You're welcome 😊
@CoolestPossibleName
@CoolestPossibleName 8 місяців тому
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.
@PavloTkach-bw7fe
@PavloTkach-bw7fe 4 дні тому
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?
@dhyey2316
@dhyey2316 4 місяці тому
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
@vanannguyen1534
@vanannguyen1534 Рік тому
Sir, how to make GUI for it ?
@md_nawshin_zaman
@md_nawshin_zaman 9 місяців тому
My know what IDE you are using and how to setup the environment? I really like the suggestion you are getting from the IDE
@indiesigi7807
@indiesigi7807 7 місяців тому
It's jetbrains clion.
@sakulm
@sakulm 4 місяці тому
How did you add the library ?
@vinhthaivanhungnguoiban452
@vinhthaivanhungnguoiban452 7 місяців тому
This tututoial is going to help me I reckon. 😢
@marciax30
@marciax30 8 місяців тому
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?
@lowlevell0ser25
@lowlevell0ser25 8 місяців тому
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
@LeFede
@LeFede Місяць тому
is it compatible with windows?
@omotoshooluwabusayo3193
@omotoshooluwabusayo3193 Рік тому
Please, can you make another video tutorials on Threads in C language?
@STUDevLantern
@STUDevLantern Рік тому
i’ll do the moment i get some time.i’m busy doing a project at the moment
@hjayawardhana5897
@hjayawardhana5897 23 дні тому
What is that app ‘CL’
@MosiurRahman-dl5ts
@MosiurRahman-dl5ts Рік тому
Why skype?
@dark_red_blood
@dark_red_blood Рік тому
Holy shit, best channel on youtube
@RajatKumar-ml8nz
@RajatKumar-ml8nz Рік тому
What application and operating system are you using
@STUDevLantern
@STUDevLantern 10 місяців тому
CLoin as IDE and Ubuntu as OS
@rul1175
@rul1175 6 місяців тому
Amazing info but the monotone voice is making a number in my ADHD.
@RajatKumar-ml8nz
@RajatKumar-ml8nz Рік тому
How did you add 30:29
@asmfahim2551
@asmfahim2551 2 місяці тому
Did u find?
@dibyarupdutta7087
@dibyarupdutta7087 Рік тому
It would be a big help if you could post the code somewhere!
@STUDevLantern
@STUDevLantern Рік тому
off course.here you are, the github repo: github.com/masoudy/CSocket
@grenadier4702
@grenadier4702 Рік тому
function names 💀
@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 Рік тому
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 Рік тому
I was glad when i found his vid, now I'm stuck on this issue for two days
@STUDevLantern
@STUDevLantern 10 місяців тому
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 7 місяців тому
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.
Socket Programming Tutorial In C For Beginners | Part 1 | Eduonix
40:07
Eduonix Learning Solutions
Переглядів 466 тис.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Переглядів 260 тис.
Эффект Карбонаро и пончики
01:01
История одного вокалиста
Переглядів 7 млн
Этого От Него Никто Не Ожидал 😂
00:19
Глеб Рандалайнен
Переглядів 9 млн
Making Simple Windows Driver in C
7:26
Nir Lichtman
Переглядів 266 тис.
i wrote my own memory allocator in C to prove a point
5:23
Low Level Learning
Переглядів 314 тис.
the TRUTH about C++ (is it worth your time?)
3:17
Low Level Learning
Переглядів 564 тис.
The Linux socket API explained
15:21
Chris Kanich
Переглядів 29 тис.
How one thread listens to many sockets with select in C.
12:01
Jacob Sorber
Переглядів 93 тис.
Multiple Chat Clients: One Thread (in C++)
27:46
Sloan Kelly
Переглядів 132 тис.
I made a web server In C like a true sigma
3:19
Imran Rahman
Переглядів 477 тис.
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Переглядів 1,9 млн
How to write a multithreaded server in C (threads, sockets)
14:30
Jacob Sorber
Переглядів 127 тис.
Эффект Карбонаро и пончики
01:01
История одного вокалиста
Переглядів 7 млн