User Tools

Site Tools


tcp_udp

This is an old revision of the document!


TCP & UDP Communications

Author: Dylan Wallace Email: wallad3@unlv.nevada.edu
Date: Last modified on 04/30/17
Keywords: TCP/IP, UDP, Communications, Server, Client

tcp_vs_udp.jpg
The photo above depicts the differences between TCP & UDP connections which allow you to create different forms of communications. The big picture problem is high-latency or low-bandwidth telerobotics. Solving this partially or completely is important because it will allow remote operation of space robotics, disaster relief, etc. This tutorial shows you how to create a TCP client & server, and a UDP talker & listener, and takes approximately 2 hours to complete.

Motivation and Audience

This tutorial's motivation is to teach the basics of TCP & UDP communications. Readers of this tutorial assumes the reader has the following background and interests:

* Know how to program in C++
* Perhaps also know how to use the Linux command line
* Perhaps additional background needed may include TCP/IP protocols
* This tutorial may also attract readers who are interested in web programming

The rest of this tutorial is presented as follows:

Protocol Introductions

TCP Client & Server

UDP Talker & Listener

Final Words

This tutorial's objective was to teach the basics of TCP & UDP communications. Complete source code for the 4 different programs was provided. Once the concepts were conveyed the reader could program and understand their own TCP & UDP communications programs.

Speculating future work derived from this tutorial, includes programming the TCP client & server and the UDP talker & listener to handle low bandwidth and high latency communications. In the big picture, the problem of high-latency or low-bandwidth telerobotics can be solved with this tutorial.

For questions, clarifications, etc, Email: wallad3@unlv.nevada.edu

tcp_udp.1493621477.txt.gz · Last modified: by dwallace