Socket Programming in C

所在平台: Udemy

课程主页: https://www.udemy.com/course/socket-programming-in-c/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:** C语言Socket编程 **课程概述:** 本课程将深入探讨C语言中的Socket编程。课程将从基础计算科学概念入手,介绍编程语言(特别是C语言)、C语言头文件及其包含方法(`#include` 关键字)。接着,我们将讲解系统调用,并深入剖析TCP/IP协议栈,包括数据在各层如何添加不同的数据和头部,并重点介绍IP协议。 随后,课程将聚焦于Socket的概念及其应用,并详细介绍如何在C语言中创建Socket。我们还将专门用一节课的时间来讲解C语言中的结构体(struct),因为它是C语言中非常重要的概念。理解Linux的开源特性,我们将探讨如何在Linux系统中查找C源文件,包括Linux内核的构建基础文件,以及文件搜索方法。 在完成上述铺垫后,课程将进入核心部分。我们将详细讲解地址结构,包括`sockaddr` 和 `sockaddr_in`。随后,我们将解释“字节序”(endianness)的概念。最后,课程将全面介绍实现Socket编程的关键函数和方法,包括: * 创建Socket的系统调用。 * 客户端连接服务器。 * 服务器端将Socket绑定到地址结构。 * 服务器端发送数据。 * 客户端接收数据。

课程评论(0条)

课程详情

in this course first we talk about some basic concepts in computer science, we talk about what programming languages are, what c programming language is, what are headers in c, and how we could include them using #include keyword, what are system calls would be the next sections, after that we talk about tcp/ip stack ,and how different data and headers are added to the data in each layer , and we talk about ip protocol in specific, after that we talk about sockets, that what sockets are and what is their application. we explain about how we could create sockets in c and after that we talk about structures in c, structs are some important concepts in c, therefore we would assign a separate lecture to it, also since we know linux is open source , so for everything we expect a source code, therefore we talk how we could browse all the c files in the linux , which the kernel is actually build based upon, so we will talk about how we could search through all of these files, after this lecture we get to the next section which is the main part of this course.in this section first we talk about address structures , and sockaddr and also sockaddr_in, after that we explain about what endianness is , after that we talk about all the methods and functions which invoke system calls causing the creation of sockets, connection sockets to a server at the client side, binding sockets to address structures at the server side, sending data from server and receiving it at the client side.

课程标签

0人关注该课程

主题相关的课程