Unix Sockets 简明教程

Unix Socket Tutorial

套接字是位于同一计算机或不同计算机上用于交换数据的通信点。套接字受 Unix、Windows、Mac 和许多其他操作系统支持。本教程涵盖了网络地址、主机名、架构、端口和服务等基本主题,从而打下了坚实的基础,然后进入网络地址函数并解释如何使用套接字编写客户端/服务器代码。

Sockets are communication points on the same or different computers to exchange data. Sockets are supported by Unix, Windows, Mac, and many other operating systems. The tutorial provides a strong foundation by covering basic topics such as network addresses, host names, architecture, ports and services before moving into network address functions and explaining how to write client/server codes using sockets.

Audience

本教程被设计为对了解 Unix 套接字的数据交换特性感兴趣的所有人。

This tutorial has been designed for everyone interested in learning the data exchange features of Unix Sockets.

Prerequisites

学习套接字一点也不困难。我们假设你精通 C 编程的基本概念。

Learning Sockets is not at all a difficult task. We assume that you are well versed with the basic concepts of C programming.