Ep.11: Client Networking (TCP / UDP) - Network Chat Programming

  Рет қаралды 21,364

The Cherno

The Cherno

Күн бұрын

Github Repo for this video: bit.ly/198xZt9
-------------------------------------------------------------------------------------------------
In this video:
- What TCP and UDP are and how they work
- How to set up a UDP client connection in Java
- How to use Datagram and DatagramSocket in Java
- How to use InetAddress
-------------------------------------------------------------------------------------------------
Website: www.thecherno.com
Twitter: / thecherno
Facebook: / thecherno
Subreddit: / thecherno
Steam Group: www.steamcommun...
-------------------------------------------------------------------------------------------------
Outro music is by Approaching Nirvana: / approachingnirvana

Пікірлер: 27
@zeragon7
@zeragon7 2 жыл бұрын
After learning a lot from the C++ series, I have come to this old series to learn some Java, as well as learn network programming a bit. As a 1989 baby, I used instant messaging applications a lot when I was a kid (AIM, MSN Messenger, etc...) and ever since the idea that you could program computers yourself was introduced to my noggin, it was always a secret dream of mine to make my own instant messaging application for desktop (fuck mobile. I miss the old internet and old computing of the early 2000s). Anyway, this has been super fun and educational and I just wanted to express my extreme gratitude to "The Cherno". Yan, I can't begin to thank you enough for all of this free education. You are an amazing human being and I'm also a tiny bit wine drunk right now so I apologize if this message is hard to follow or awkward in any way :)
@SamBrev
@SamBrev 11 жыл бұрын
finally getting to the meat and potatoes of this series! lovin it! thanx as ever!
@yourlocalfaxmachine9934
@yourlocalfaxmachine9934 11 жыл бұрын
I would still love to see tutorials from you on TCP connections just because I actually want to make other networked programms that would work better with it.
@JamesConnolly1994
@JamesConnolly1994 10 жыл бұрын
Would love a TCP version at some point, it sounds much more useful and reliable (in a non gaming context)
@joshy2205
@joshy2205 11 жыл бұрын
He went to print the error and KZbin crashed and now won't skip ahead in the video, ah well it's so good I'll watch half of it again, awesome :D
@flightoffearfan
@flightoffearfan 2 жыл бұрын
"Does has" My favorite Cherno quote lol
@Jonathanloov
@Jonathanloov 11 жыл бұрын
Remember to leave a like, everybody!
@OfficialPirateFraser
@OfficialPirateFraser 11 жыл бұрын
thanks for making videos cherno your awesome
@kieran1467
@kieran1467 11 жыл бұрын
It's the internet man, it's mostly free to everyone....
@dunghn907
@dunghn907 4 жыл бұрын
You need to be duplicated! =))) It's very helpfull! Many thanks from Vietnam!
@footballerrm7731
@footballerrm7731 11 жыл бұрын
What's next Game Programming im really interested in astar pathfinding and adding lightemitters, and just an extra could you make a topic on reddit or a video about 4 directional movement
@MrTpsGamer
@MrTpsGamer 11 жыл бұрын
thanks, good to know i didnt do this!
@SamBrev
@SamBrev 11 жыл бұрын
i think it would be better if you created your own exception and threw that if connection failed, instead of returning a boolean.
@DaBBoSaH
@DaBBoSaH 10 жыл бұрын
where r u from? you've accent is really nice :D
@EDToasty
@EDToasty 10 жыл бұрын
Australia!
@kieran1467
@kieran1467 11 жыл бұрын
Yay :D
@SammySamkough
@SammySamkough 11 жыл бұрын
TheCherno, if you don't mind (this will really help me by the way), where did you learn programming and networking from? You can message me it, comment me it, it's your choice.
@jooncoders9316
@jooncoders9316 10 жыл бұрын
why did you not just use a BorderLayout instead of all that shit with a grid layout
@EDToasty
@EDToasty 10 жыл бұрын
Because he wanted to.
@MrTpsGamer
@MrTpsGamer 11 жыл бұрын
TheChernoProject i was making a 3d game with eclipse following your instructions my computer broke, it had something to do with the graphics card but is there anything i might have done wrong? like not make the game close properly and messing it up. im not blaming you, just a quick question
@FatherlyFox
@FatherlyFox 11 жыл бұрын
I actually find UDP very unreliable, and this is why I will have to battle my way at making a server connection side for my game because I don't use data sending that much except for C#
@TheCherno
@TheCherno 11 жыл бұрын
There's nothing you could have done in basic non-native Java that could have affected your hardware. :)
@kristupasantanavicius9093
@kristupasantanavicius9093 11 жыл бұрын
You can't break your computer by programming in Java. Not your fault. UNless you directly program GPU, than you could break it I think.
@VizXRyRy
@VizXRyRy 11 жыл бұрын
I love your vids, but I'm sick of hearing you say you will make an "in-depth" episode or you will "put out 3 episodes per day" when you don't. Don't say it if you're not going to do it. Just saying.
Ep.12: Receiving Packets - Network Chat Programming
11:34
The Cherno
Рет қаралды 13 М.
Networking in C++
32:50
The Cherno
Рет қаралды 247 М.
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 58 МЛН
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 128 МЛН
Brawl Stars Edit😈📕
00:15
Kan Andrey
Рет қаралды 50 МЛН
Harder Than It Seems? 5 Minute Timer in C++
20:10
The Cherno
Рет қаралды 170 М.
Java UDP Client Server Messenger
22:14
WittCode
Рет қаралды 22 М.
What is a Protocol? (Deepdive)
18:14
LiveOverflow
Рет қаралды 171 М.
How TOR Works- Computerphile
14:19
Computerphile
Рет қаралды 1,7 МЛН
Why Didn't He Get the Job? Let's Find Out! // Code Review
27:25
The Cherno
Рет қаралды 126 М.
WHY did this C++ code FAIL?
38:10
The Cherno
Рет қаралды 258 М.
OSI and TCP IP Models - Best Explanation
19:20
_Drunk Engineer_
Рет қаралды 435 М.
Creating a TCP Client in C++ [Linux / Code Blocks]
24:59
Sloan Kelly
Рет қаралды 24 М.
TETRIS CLONE! // Code Review
36:55
The Cherno
Рет қаралды 22 М.