Network programming (preliminary understanding of TCP, UDP and URL)

catalogue 1, There are two main problems in network programming: 2, Two elements in network programming: 3, Communication element 1: IP and port number 4, Realize TCP network programming Example 1: the client sends information to the server, which displays the information on the console. Example 2: the client sends a file to the server, w ...

Posted by PC Nerd on Thu, 17 Feb 2022 12:33:18 +0100

tcp stack implementation, tcp timer and sliding window

To realize user state protocol stack, we must understand TCP, 11 states of TCP, sliding window, congestion control, timer and so on. To use the user state protocol stack, the epoll provided by the kernel will not work. We need to implement the user state epoll ourselves. Epoll involves a callback opportunity. The callback function is to add th ...

Posted by LDM2009 on Fri, 11 Feb 2022 12:07:35 +0100

Network programming, regular expression

Regular expression OverviewRegular expression defines the pattern of string, which can be used to search, edit and process text. It is not limited to one language, but there will be subtle differences in each language jdk1 4 launch regular expressions and save them in Java util. Regex packageGrammar Metacharacter describe \ Mark the ...

Posted by pjsteinfort on Wed, 09 Feb 2022 19:05:40 +0100

Python build proxy ip pool

summary When using crawlers, most websites have certain anti crawling measures. Some websites will limit the access speed or access times of each IP. If you exceed its limit, your IP will be blocked. The processing of access speed is relatively simple. It only needs to crawl once at an interval to avoid frequent access; For the number of v ...

Posted by Grimloch on Fri, 21 Jan 2022 12:44:01 +0100

TCP/UDP multi-channel open source framework based on KCP

1, Demand analysis At present, there are a lot of information about the principle and mechanism of KCP and the implementation of various versions of KCP on the Internet. I did the KCP correlation analysis of two articles before, which are the principle mechanism and performance testing practice. Our current project is a game with high real-tim ...

Posted by dan1956 on Thu, 20 Jan 2022 06:06:22 +0100

Understand Go language network programming [tcp, udp]

preface This article is not about http Net package, which only introduces the traditional network communication (the http.net package will be updated separately later) 1, Hierarchy of the Internet It is roughly divided into four layers. If subdivided, it can be divided into seven layers 1. Application layer Application layer, prese ...

Posted by Clandestinex337 on Wed, 19 Jan 2022 08:39:47 +0100

Chapter 21 of TCP/IP network programming

Understanding the asynchronous notification I/O model Synchronous and asynchronous The key of synchronization is the call and return time of function, as well as the start and completion time of data transmission. Data transmission starts at the moment when the send function is called, and the data transmission is completed at the moment ...

Posted by Boxerman on Mon, 17 Jan 2022 07:31:07 +0100

Reverse analyze the TCP private protocol of an app and realize batch data capture

1. Preface Steps: analyze Android global Java obfuscator, analyze TCP private protocol, and write socket script to realize data capture The analyzed app is here https://wwo.lanzouy.com/ifKPbytn9mh password:fhj0 This analysis process is limited to learning and use. Do not use it for illegal purposes. If the reader uses it for illegal purpo ...

Posted by husslela03 on Mon, 17 Jan 2022 04:42:52 +0100

QT from entry to soil - TCP/IP network communication (and file transfer)

** introduction ** TCP/IP communication (i.e. SOCKET communication) is the communication established through TCP/IP protocol on the basis of following the four-tier architecture of ISO/OSI model by connecting the Server end of the Server and the Client end of the Client through the network cable. The controller can be set as Server or Client. ...

Posted by ckdoublenecks on Sat, 15 Jan 2022 11:39:23 +0100

TCP shakes hands three times and waves four times

TCP three handshakes and four waves Quoted articles: (32 messages) the whole process of tcp three handshakes and four handshakes and why three handshakes_ Rock owl blog - CSDN blog_ tcp the whole process of three handshakes and four waves https://blog.csdn.net/spade_Kwo/article/details/119464901 What is TCP protocol? TCP It is a host ...

Posted by Tarsonis21 on Wed, 12 Jan 2022 06:43:17 +0100