About 546,000 results
Open links in new tab
  1. Socket Programming in C - GeeksforGeeks

    Apr 23, 2025 · TCP Socket (Stream Socket): Provides reliable, connection-based communication (i.e., TCP protocol). UDP Socket (Datagram Socket): Provides connectionless communication, faster but unreliable (i.e., UDP protocol ).

  2. In this section we’ll write application programs that use TCP; in the following section we’ll write pro-grams that use UDP. Recall from Section 2.1 that many network applications consist of a pair of pro-grams—a client program and a server program—residing in two different end sys-tems.

  3. TCP and UDP server using select - GeeksforGeeks

    Nov 5, 2021 · The Select function is used to select between TCP and UDP sockets. This function gives instructions to the kernel to wait for any of the multiple events to occur and awakens the process only after one or more events occur or a specified time passes.

  4. Socket in Computer Network - GeeksforGeeks

    Dec 28, 2024 · Types of Sockets : There are two types of Sockets: the datagram socket and the stream socket. Datagram Socket : This is a type of network which has connection less point for sending and receiving packets. It is similar to mailbox. The letters (data) posted into the box are collected and delivered (transmitted) to a letterbox (receiving socket).

  5. Networking and Socket Programming - Department of …

    The first step is to call the socket() function, specifying the type of communication protocol (TCP based on IPv4, TCP based on IPv6, UDP). The function is defined as follows: #include <sys/socket.h> int socket ( int family , int type , int protocol );

  6. TCP and UDP Socket Programming - Goucher College

    Feb 25, 2011 · Transport layer introduction and UDP. Basics: Hostname and port are used to specify transport endpoints. Socket -- the communication object. TCP properties: reliable, connection-oriented, byte-stream, connection established before application-level protocols exchange information, two-way communication.

  7. Master Socket Diagrams in Network Programming - my …

    Mar 13, 2024 · Sockets use transport layer protocols, mainly TCP (Transmission Control Protocol) and UDP (User Datagram Protocol), to establish communication rules and procedures. In socket diagrams, it is essential to clearly identify the types of sockets being used:

  8. In this Lab you will be introduced to socket programming at a very elementary level. Specifically, we will focus on TCP socket connections which are a fundamental part of socket programming since they provide a connection oriented service with both flow and congestion control.

  9. Connection-oriented communication pattern using sockets.

  10. Each client sends a single datagram and receives a single datagram. If a client wants to send two datagrams, it is considered as two clients for the server. The C language defines a socket as a structure. Cont... Family: defines the protocol family (PF). The common values are PF_INET (for current Internet), Cont...

  11. Some results have been removed