Analysis of USB network card sending and receiving data

preface Network subsystem is the top priority of Linux kernel. Today, we start with the network card driver and start the exploration of the network subsystem. hardware environment Raspberry pie 3B + is equipped with Gigabit network card LAN7515, but it uses USB2 0 channel (the maximum theoretical speed is 480Mbps), and the official Etherne ...

Added by br on Sat, 12 Feb 2022 18:26:25 +0200

Entity Framework Code First mapping

Fluent API EF is also an ORM tool, and mapping is always the core part. Therefore, next, the mapping configuration of EF in Code First mode is introduced in detail. There are two ways to implement the mapping model through Code First: Data Annotation and Fluent API. Data Annotation needs to represent the mapping information such as primary k ...

Added by pranav_kavi on Thu, 03 Feb 2022 17:09:59 +0200

LwIP pbuf of TCP/IP protocol stack

1, Overview lwIP - A Lightweight TCP/IP stack The focus of the lwIP TCP/IP implementation is to reduce resource usage while still having a full scale TCP. This makes lwIP suitable for use in embedded systems with tens of kilobytes of free RAM and room for around 40 kilobytes of code ROM. Main features include: Protocols: IP, IPv6, ICMP, ND, ML ...

Added by kontesto on Wed, 05 Jan 2022 07:23:04 +0200

20 new API s in. NET 6

DateOnly and TimeOnly . NET 6 introduces two long-awaited types - DateOnly and TimeOnly. They represent the date or time portion of DateTime. // public DateOnly(int year, int month, int day) // public DateOnly(int year, int month, int day, Calendar calendar) DateOnly dateOnly = new(2021, 9, 25); Console.WriteLine(dateOnly); // Output: 25-Sep-2 ...

Added by delldeveloper on Sat, 01 Jan 2022 03:57:18 +0200

Design pattern - strategy pattern

Application scenario: now the supermarket needs a set of supermarket cashier system. We need to make a set of cashier system. The demand will be very simple. When we think about it, it's just a matter of several text boxes. Enter the unit price and quantity, and then calculate it. However, if supermarkets launch discount activities in the later ...

Added by Master_Phantom on Tue, 02 Nov 2021 16:06:49 +0200

muduo Learning Notes: Implementing TCP Network Programming Library-Connector in the net section

Similar to TcpServer passively accepting connections using Acceptor, TcpClient actively initiates connections using Connector. Several key points used by Connector: In non-blocking network programming, the basic way to initiate a connection is to call connect(2), which indicates that the connection has been established when the socket becomes ...

Added by JasonMWaldo on Fri, 03 Sep 2021 19:29:20 +0300