About 292,000 results
Open links in new tab
  1. how to differentiate tcp/udp when programming sockets

    Apr 6, 2015 · For TCP sockets you should have used bind(), listen() and accept() methods for server sockets and connect() or connect_ex() for client sockets. Whereas for UDP sockets you won't need listen() , accept() and connect() methods (as TCP sockets are connection-oriented sockets while UDP sockets are connection less sockets).

  2. Differences between TCP and UDP - GeeksforGeeks

    Dec 27, 2024 · TCP is a connection-oriented protocol whereas UDP is a part of the Internet Protocol suite, referred to as the UDP/IP suite. Unlike TCP, it is an unreliable and connectionless protocol. In this article, we will discuss the differences between TCP and UDP.

  3. TCP vs. UDP: An In-Depth Guide on the Key Differences

    Programming with Sockets – TCP vs UDP Implementations. Understanding transport protocols means getting hands on programming sockets. Whether building client/server architectures or peer-to-peer mesh networks, socket API calls interface apps with …

  4. TCP vs UDP: A Deep Dive into Server-Client Communication in …

    Dec 17, 2024 · In this article, we’ll explore how Python’s socket library can be leveraged to implement both TCP and UDP server-client communication. We will break down each step in the process, discussing...

  5. TCP vs. UDP — What's the Difference and Which Protocol is

    Jun 28, 2021 · In this article, we'll go over computer networking basics, the differences between TCP and UDP, when each is used, and more. Before diving into how TCP and UDP work, it's helpful to know the basics about how the internet works. Generally speaking, the internet is a network of connecting devices.

  6. UDP vs. TCP - Gaffer On Games

    Oct 1, 2008 · TCP and UDP are both built on top of IP, but they are radically different. UDP behaves very much like the IP protocol underneath it, while TCP abstracts everything so it looks like you are reading and writing to a file, hiding all complexities of …

  7. Understanding Socket Programming: TCP vs. UDP Explained

    2 days ago · On the server-side we create the UDP socket again specifying SOCK_DGRAM. Then we bind that socket to a port value that is also known by the client and we loop. First receiving data from the client, then changing the message and sending data back to the client. Socket programming with TCP differs in its approach.

  8. TCP vs UDP: Detailed Comparison - IP With Ease

    Mar 28, 2025 · The main difference between UDP vs TCP is that the TCP is connection-oriented while UDP is connectionless. In TCP after the connection is set up, bidirectional sending of data is possible but in UDP, packets are sent in chunks.

  9. Socket Programming for TCP and UDP - programmer.group

    Sep 21, 2021 · This paper mainly talks about how to use Socket to communicate between server and client based on TCP and UDP, the communication flow and some details in the code, and the differences and reasons between them in the code.

  10. Difference between a TCP Socket and a Connected UDP Socket

    Jul 12, 2016 · The existence or absence of a connection requires that the identifier format of each socket be different: whereas a TCP socket is identified by the quadruple {source IP address, source port number, destination IP address, destination port number}, an UDP socket is identified by the tuple {destination IP address, destination port number}.