Tag: TCP

Browse all articles, tutorials, and guides about TCP

Posts

Networking
2025-06-12|8 min read

Can Two Different Sockets Share a TCP Port?

Understand how TCP port sharing works with SO_REUSEADDR and SO_REUSEPORT, when multiple sockets can bind to the same port, and the limitations you need to know.

Networking
2025-05-03|8 min read

Why SCTP Is Not Widely Used Despite Its Technical Advantages

Explore why Stream Control Transmission Protocol (SCTP) remains niche despite offering features that improve on both TCP and UDP, including NAT issues, lack of OS support, and ecosystem inertia.

Networking
2025-03-15|7 min read

How Do SO_REUSEADDR and SO_REUSEPORT Differ?

Understand the difference between SO_REUSEADDR and SO_REUSEPORT socket options, when to use each one, and how they solve different problems in network programming.

Networking
2025-02-18|7 min read

Close vs Shutdown Socket

Understanding the difference between close() and shutdown() for sockets is crucial for proper connection handling. Learn when to use each, how shutdown enables half-closed connections, and how close releases file descriptors.

Networking
2025-02-14|8 min read

UDP vs TCP: How Much Faster Is UDP Really?

Understanding the performance differences between UDP and TCP protocols, when speed matters, and why UDP isn't always the faster choice in real-world applications.

Networking
2025-01-01|8 min read

When is it Appropriate to Use UDP Instead of TCP?

UDP trades reliability for speed and simplicity. Learn when to choose UDP over TCP for real-time applications, gaming, streaming, and scenarios where low latency matters more than guaranteed delivery.

Networking
2024-10-12|4 min read

Who is Listening on a Given TCP Port on Mac OS X?

Need to find out which process is using a specific port on your Mac? Here's how to check which application is listening on a TCP port using built-in macOS tools.

Networking
2024-05-21|5 min read

What Is the Difference Between a Port and a Socket?

Ports and sockets are often mentioned together in networking, but they serve different roles. This guide breaks down what they are and how they work together.