[计算机软件及应用]TCP-IP程序设计_II.ppt

  1. 1、本文档共227页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
[计算机软件及应用]TCP-IP程序设计_II

TCP/IP程序设计 汪浩 软件学院 QQ:641461085 引言 Internet的应用程序 Web Server/Web Client FTP Server/FTP Client Mail Server/Mail Client DNS Server/DNS Client QQ/eMule/xunlei/MSN/…… Sniffer/网络安全工具 编写这些Internet应用程序的基础是什么? TCP/IP协议 TCP/IP(Socket)程序设计 课程目标/内容 熟练掌握Windows 下的socket编程技术 多进程模式TCP Socket程序设计 多线程模式TCP Socket程序设计 基于select复用模式的TCP Socket程序设计 基于WSAAsyncSelect模式的TCP Socket程序设计 基于WSAEventSelect模式的TCP Socket程序设计 基于Overlapped 模式的TCP Socket程序设计 基于Completion Port模式的TCP Socket程序设计 Windows TCP Socket的一些扩充函数 以上各I/O模型的 UDP Socket程序设计 以上各I/O模型的 Raw Socket程序设计 socket 选项 域名解析 C# Socket程序设计 Open SSL的socket程序设计 基于WinPcap的数据链路层程序设计 教材及参考书 TCP/IP协议 W. Richard Stevens et al. TCP/IP Illustrated, vol 1~3 (英文).清华大学出版社 Socket 编程 W. Richard Stevens. Unix Network Programming (英文), 2nd. 清华大学出版社;3rd机械工业出版社 Anthony Jones,Jim Ohlund. Network Programming for Ms Windows. 2nd . Microsoft Corporation Unix编程 W. Richard Stevens, etal. Advanced Programming in the UNIX Enviroment (英文).人民邮电出版社 TCP/IP协议族体系结构概述 TCP/IP与OSI的对应关系 Internet的基础协议是TCP/IP 编写Internet应用程序—Socket Programming Processes communicating Process: program running within a host. within same host, two processes communicate using inter-process communication (defined by OS). processes in different hosts communicate by exchanging messages (Sockets) Client process: process that initiates communication Server process: process that waits to be contacted Inter-process communication of OS (e.g. Unix/Windows) Unix message passing Pipes and FIFOs Message queues Synchronization Mutexes and condition variables read-write locks semaphores Shared memory Remote procedure calls Windows Wait Functions (WaitForSingleObject etc) Event Kernel Objects Waitable Timer Kernel Objects Semaphore Kernel Objects Mutex Kernel Objects 数据的逐层封装 Client/Server编程模型 Internet上的所有程序都是C/S C/S vs. B/S A Simple Daytime Client /Server(IPv4) tcpdaytimecli.cpp/tcpdaytimesrv.cpp Client Include our own header Create TCP socket Specify servers IP address and port Esta

您可能关注的文档

文档评论(0)

skvdnd51 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档