Chapter 8. Elementary UDP Sockets

Introduction

recvfrom and sendto Functions

UDP Echo Server: main Function

UDP Echo Server: dg_echo Function

UDP Echo Client: main Function

UDP Echo Client: dg_cli Function

Lost Datagrams

Verifying Received Response

Server Not Running

Summary of UDP Example

connect Function with UDP

dg_cli Function (Revisited)

Lack of Flow Control with UDP

Determining Outgoing Interface with UDP

TCP and UDP Echo Server Using select

Summary