哪本书可学习套接字编程和TCP网络通信? [英] Which book(s) to learn sockets programming and TCP network communication?
问题描述
在接下来的几个月中,我将做一些小项目,并且需要一些书籍(最好是书籍)或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).
所以,我需要的是
- 某些东西-可能与语言无关-让我快速进行套接字编程
- 我可以使用流和写/读来定义自己的协议(通过TCP/IP)的构想,这很简单
- 一般联网(TCP?)概念的一些概述;在安全性方面,也许是关于客户端/服务器的一般性知识(例如,我可以将一些内容从客户端发送到服务器并发送答复,但不确定服务器发起的与单个服务器的通信或向所有客户端的广播)
- 还有什么?
任何让我快速入门的建议,至少对于一个小项目来说足够了,这样我就可以在工作中学习.
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屋!