MENU

Fun & Interesting

Java Network Sockets + Virtual Threads = Cool!

Will Tollefson 2,774 1 year ago
Video Not Working? Fix It Now

In this video we'll cover SOCKET PROGRAMMING in JAVA. We'll touch on both SINGLE and MULTITHREADED server applications that have server sockets waiting for client connections. Java sockets are built upon TCP, but the API also provides DatagramSocket, a UDP based implementation sometimes used in particular applications. Also be sure to stick around till near the end where we talk about the Java NIO API and some benefits/trade-offs there. I'm Will Tollefson, a guy who loves to NEVER STOP LEARNING and teach others what I've learned. If you're enjoying the content, please LIKE, SUBSCRIBE, and SHARE! VIDEO CHAPTERS: 0:00 What's a Network Socket? 1:17 Writing a Basic Client and Server 13:20 A Working Implementation 14:27 Writing an Echo Server 19:22 Limitations of Single Client Connections 21:06 Multithreaded Server with Virtual Threads 24:59 Java NIO APIs

Comment