[Linux network programming learning] preliminary knowledge (network byte order, IP address conversion function, sockaddr data structure)
This is Niuke Linux C + + course and dark horse Linux system programming notes.
1. Network byte order
We already know that multi byte data in memory can be divided into large end and small end relative to memory address. The multi byte data in the disk file can also be divided into large end and small end relative to the offset address in th ...
Posted by Tsukiyomi on Tue, 09 Nov 2021 21:58:18 +0100
Socket kernel data structure
In the previous section, we talked about the calling process of Socket in TCP and UDP scenarios. In this section, we will follow this process to the kernel to find out what data structures have been created and what things have been done in the kernel.
Parsing socket function
Let's start with the Socket system call.
SYSCALL_DEFINE3(socket, i ...
Posted by drorgo on Wed, 03 Nov 2021 22:43:41 +0100
c/c + + tcp protocol communication based on liunx platform sends small demo by data segment
Introduction *: tcp is a protocol of network communication. For programmers, the protocol is to write a program according to the agreed protocol. For specific coding, compared with the previous demo of socket communication, socket communication will not use a new API, but add corresponding information to the header of the sent message according ...
Posted by willc on Mon, 01 Nov 2021 15:02:31 +0100
Java network programming
Network programming is a program running on different computers under the network communication protocol, which can transmit data
Three elements of network programming
IP address
The identification number of the computer, that is, the device identification. The IP address of each computer is different, ...
Posted by Studio381 on Wed, 27 Oct 2021 14:52:22 +0200
On select function (C language)
1. Introduction
Select is still important in Socket programming, but for beginners of Socket, they don't like to write programs with select. They are just used to writing blocking programs such as connect, accept, recv or recvfrom (the so-called blocking method block, as the name suggests, means that a process or thread must wait for an ev ...
Posted by unerd.co.uk on Sat, 09 Oct 2021 06:34:59 +0200
Socket and Multithreaded Practice
Review of the previous section: We send data from the application layer to senders and receivers in different buildings. The transport layer has two protocols: TCP / UDP TCP / UDP can be seen as a parallel universe, without interruption. Receiver and sender can use TCP / UDP Each port of the server is isolated from each other. Understand TCP as ...
Posted by furma on Sun, 03 Oct 2021 21:40:38 +0200
Enterprise shared file system
Chapter 1 enterprise level shared file system
1.1 vsftp
1.1.1 overview of vsftp
1. Introduction
FTP (File Transfer Protocol) is one of the protocols in the TCP/IP protocol group. Used for two-way transfer of files on the Internet. When using FTP to transmit, it is dangerous to a certain extent, because the data is completely unprotected pla ...
Posted by Online Connect on Sun, 19 Sep 2021 08:13:43 +0200