Computer Networks  (2012 Spring)


Lecture for Classes of Advanced Class 1001

2012-04-25, Week 11, Lecture hour 5-6, Classroom D9-D314
      [Content]: Chapter1 Foundation, 1.4-1.6
      [Slides]: L03_Implementation, A02-Socket-programming
      [Demo Source Codes]: Simplex Talk, Socket Programming, Windows version, Linux version

2012-04-18, Week 10, Lecture hour 5-6, Classroom D9-D314
      [Content]: Chapter1 Foundation, 1.3
      [Slides]: L02_Architecture, A01-Network-History

2012-04-11, Week 9, Lecture hour 5-6, Classroom D9-D314
      [Content]: Chapter1 Foundation, 1.2
      [Slides]: L01_Requirements



Lecture for Classes of Comm.1001-1004

2012-03-31, Week 8, Lecture hour 7-8, Classroom D9-B103
      [Content]: Chapter5 End-to-End Protocols, 5.2; Chapter6 Congestion Control, 6.3
      [Slides]: L15_TCP_2

2012-03-28, Week 7, Lecture hour 5-6, Classroom D12-J2401
      [Content]: Chapter5 End-to-End Protocols, 5.1-5.2
      [Slides]: L14_TCP_I, History of TCP

2012-03-26, Week 7, Lecture hour 7-8, Classroom D9-B103
      [Content]: Chapter4 Internetworking, 4.3 CANCELED
      [Slides]: L13_Internet



Lecture for Classes of Comm.1005-1007

2012-02-27, Week 3, Lecture hour 3-4, Classroom D9-B103
      [Content]: Chapter2 Direct link network, 2.5--2.6
      [Slides]: L05_Reliable-transmission, demos on reliable communication

2012-02-22, Week 2, Lecture hour 5-6, Classroom D12-J2414
      [Content]: Chapter2 Direct link network, 2.1--2.4
      [Slides]: L04_Direct-link-network

2012-02-20, Week 2, Lecture hour 3-4, Classroom D9-B103
      [Content]: Chapter1 Foundation, 1.4, 1.5
      [Slides]: L03_Implementation, more about delay
      [Demo Source Codes]: Simplex Talk, Socket Programming, Windows version, Linux version

 

Reference Textbooks

[1]   L. L. Peterson & B. S. Davie,   Computer Networks: A Systems Approach, 3rd Edition [download] or 4th Edition.
[2]   James F. Kurose and Keith W. Ross, Computer Networking, A Top-Down Approach Featuring the Internet, 3rd Edition [download] or 4th Edition.
[3]   Andrew Tanenbaum, Computer Networks, 4th Edition [download]
[4]   谢希仁,计算机网络,第4版 或 第5版,电子工业出版社

 

Comments on socket sample code

原教材上的socket代码是为Linux环境下开发的,不能直接在windows环境下编译。

(1) 编译环境为VC6.0时,需要在预编译部分载入wsock32.lib库文件,即
#include <winsock.h>
#pragma comment(lib, "wsock32.lib")
参考文件:socket_server_vc6, socket_client_vc6

(2) 编译环境为CodeBlock时,需要在预编译部分载入wsock2.h库文件,并且修改link 参数。
#include <windows.h>
#include <winsock2.h>
设置:CodeBlocks菜单栏的Project->Build Options->Linker settings->[Add] Codeblock的安装目录下的 MinGW->Lib文件夹的libwsock32.a,libws2_32.a库文件 -> [Copy all to...] 将 libwsock32.a,libws2_32.a库文件分别复制到Debug和Release。
参考文件:socket_server_cb, socket_client_cb


Feedback

If you have any question, welcome to write an e-mail to me ( liuwei@hust.edu.cn).
Due to the large number of spam e-mails, please add ``[Comnet][Question]'' as the prefix in the title of your e-mail.
That will help me to identify your questions, thank you.

 

<Last Updated: 2012-04-24>