• Post category:StudyBullet-2
  • Reading time:5 mins read

TCP and UDP sockets in Java

What you will learn

Programming basic network applications

Programming client-server applications

TCP Sockets in Java

UDP Sockets in Java

Running multiple clients at the same time (multithreading)

Description

If you have a great idea for an app that needs to communicate through a network, or you’re just beginning to learn Java, or you’re a network engineer looking to implement one of many network protocols, you’ve come to the right place!

In this course, you’ll get the tools to build both client-server and peer-to-peer applications. We’ll cover both the use of TCP and UDP sockets, and I’ll leave it to you to choose which one suits your application better. There are some bonus examples that you can use to practice, and you’re more than welcome to post your questions, ideas or struggles in the Q&A section.

All of the code is thoroughly explained, so you don’t need much prior Java knowledge, but basic understanding of programming in general is a plus.

English

Language

Content

Introduction

Introduction

Installing Eclipse and JDK

Running Eclipse for the first time

TCP Socket in Java

Simple TCP Program (Server)


Get Instant Notification of New Courses on our Telegram channel.


Simple TCP Program (Client)

Thorough Explanation of the Code for “Simple TCP Program”

Advancing the Simple TCP Program

Bonus: Wireshark Analysis

Multithreading

Simple TCP Program (with multiple threads)

Advancing the Multithreaded TCP Program

Bonus Examples

UDP Socket in Java

Simple UDP Program (Receiver)

Simple UDP Program (Sender)

Thorough Explanation of the Simple UDP Program + Adding a Loop

Simple UDP Chat