java Network Programming Practice-Native NIO Non-Blocking Communication Network Programming Practice

Preface Last mentioned to improve our RPC framework, this week take the time to explore the native NIO non-blocking network programming ideas that JDK provides to us.NIO libraries were introduced in JDK 1.4.NIO makes up for the deficiency of the original I/O by providing high-speed, block-oriented I/O in standard Java code. Main differences ...

Posted by nike121 on Mon, 22 Jun 2020 00:19:57 +0200

Program life three language implementation - user login interface random verification code, source code sharing!

Before using mobile phone login do not verify code, now login always verify code, boring people to death! So why do you have annoying verification codes every time you log in? In fact, this involves the complete network problem! 1, Application scenario Many partners should know: Prevent hackers from calling the attack system through ...

Posted by pob123 on Fri, 19 Jun 2020 13:30:09 +0200

Learn Java proxy mode, this one is enough

This article will explain the agent mode through its concept, characteristics, and finally realize the use scenarios of each agent mode through coding. What is agent mode Agent pattern is a programming design pattern in Java language. There are two important roles: the principal class and the agent class. The agent class can call the delegate c ...

Posted by Chris.P on Fri, 19 Jun 2020 11:36:09 +0200

Go language microservice framework practice: 7.TLS authentication and Token authentication

TLS authentication and Token authentication @author: DavieCopyright: Beijing Qianfeng Internet Technology Co., Ltd In the last lesson, we learned four flow patterns of gRPC go framework. In the actual production environment, a full-featured service includes not only the basic function of method cal ...

Posted by t0ta11 on Fri, 19 Jun 2020 10:31:10 +0200

C language examination on computer operation question bank (basic) (Reference)

Here are the possible code problems (Fundamentals) in the C language test: (if you like it, please share it with your friends! Thank you 1. Find the total number of numbers between 300-800 that can be divided by 3 or 5. # include <stdio.h> int main() { int i, s = 0; for (i=300;i<=800;i++) { ...

Posted by davidguz on Thu, 18 Jun 2020 08:23:53 +0200

java basic review common classes

I java.lang Class in package does not need to import package 1. Features:    java.lang Package is the core of Java language, which provides the basic classes in Java. Including basic Object Class, Class class, String Class, basic type wrapper Class, basic math Class and other basic classes. 2. 8 basic types of initialization default va ...

Posted by manamino on Thu, 18 Jun 2020 06:01:02 +0200

A variety of encryption schemes coexist in Spring Security, which is a powerful tool for the integration of old and dilapidated systems!

About the problem of password encryption, brother song has talked with you before. For reference: Two ways of password encryption in Spring Boot! In this article, song introduced two kinds of encryption schemes, but both of them are used independently! Can multiple password encryption schemes exist in the same project at the same time? The an ...

Posted by FlipinMonkeyPie on Thu, 18 Jun 2020 04:58:42 +0200

Network communication simulator using WINSOCK (client side)

Network communication simulator using WINSOCK (client side) Recently, in the process of embedded project, I learned winsock network programming. The main content of project is to simulate the whole process through c language before migrating to stm32. The process includes: a client device and a sens ...

Posted by ody on Wed, 17 Jun 2020 05:41:41 +0200

Dubbo RPC communication of Spring Cloud series

About Dubbo       Official website: http://dubbo.apache.org/zh-cn/   Github: https://github.com/apache/dubbo On February 15, 2018, dubbo, Alibaba's service governance framework, successfully became an Apache foundation incubation project. Apache Dubbo is a high-performance and lightweight open source Java RPC framework, which provides th ...

Posted by bitt3n on Wed, 17 Jun 2020 04:52:16 +0200

Difference between locking and fence and applicable scenarios

Opening I believe that little partners know more or less about these two words. They are common thread communication tools in concurrent programming. The two are very similar, but they are different, which leads to a lot of confusion among many small partners, including me: what is the difference between them, and what scenarios are they applic ...

Posted by rsanc on Tue, 16 Jun 2020 04:34:12 +0200