哪些书籍可以学习套接字编程和 TCP 网络通信? [英] Which book(s) to learn sockets programming and TCP network communication?

查看:17
本文介绍了哪些书籍可以学习套接字编程和 TCP 网络通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将在接下来的几个月里做一些小项目,需要一些书(最好)或 URL 来学习一些基本概念.

I will do a few small projects over the next few months and need some books (preferably) or URLs to learn some basic concepts.

一般来说,一台 PC 或嵌入式设备(因项目而异)从外部硬件设备收集一些用户输入或数据,并将其传输到远程 PC,然后将其输入数据库.

In general one PC or embedded device (which varies by project) collects some user input or data from an external hardware device and transmits it to a remote PC which will enter it into a database.

后端将使用 Indy 套接字组件在 Delphi 中编码.前端可能是一台使用相同 Indy 套接字运行 Delphi 应用程序的 PC,但它可能同样是一个小型控制器板,可能用 C 编程(Windows 和 Linux 都不是操作系统,但有一些不可预见的套接字支持).

The back-end will be coded in Delphi using Indy socket components. The front-end might be a PC running a Delphi app using the same Indy sockets, but it might equally be a small controller board, probably programmed in C (with neither Windows nor Linux as an o/s, but with some unforeseeable socket support).

所以,我需要的是

  1. 一些东西 - 可能与语言无关 - 让我加快套接字编程的速度
  2. 我可以使用流和写入/读取来定义我自己的协议(通过 TCP/IP),这将非常简单
  3. 对一般网络 (TCP?) 概念的一些概述;可能有点关于安全性,一般客户端/服务器的东西(例如,我可以从客户端发送一些到服务器并发送回复,但不太确定服务器发起的与单个服务器的通信或向所有客户端的广播)
  4. 还有什么?

任何能让我跟上进度的建议,至少足以让我在工作中学习的小项目.

Any recommendations to get me up to speed, at least enough for a small project which would allow me to learn on the job.

提前致谢

推荐答案

这是学习 TCP/IP 的书,不管你用什么语言:

This is the book to learn TCP/IP, doesn't matter what language you will be using:

W.Richard Stevens,TCP/IP 图解,第 1 卷:协议

以下是C网络程序员的圣经,强烈推荐:

The following is the C network programmer's bible, highly recommended:

W.Richard Stevens,Unix 网络编程,第 1 卷:套接字网络 API

在在线资源中,Beej 网络编程指南位居榜首列表.

Out of online resources, Beej's Guide to Network Programming tops the list.

这篇关于哪些书籍可以学习套接字编程和 TCP 网络通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆