The evolution of Java BIO NIO AIO in netty series

brief introduction In the previous chapter, we introduced five models of IO. In fact, Java only supports three of them, namely, BIO/NIO/AIO. This article will introduce the evolution history of these three types of IO in Java, and analyze the story behind them from the perspective of use. Java BIO Analysis of BIO concept BIO, Blocking IO, Bloc ...

Posted on Tue, 19 Nov 2019 16:25:28 -0500 by hostfreak

UNIX (network programming - basic usage): 17 --- Service parsing function (getservbyname, getservbyport)

I. relationship between service name and port A port represents a service process, so a service name can be used instead of a port A port represents a service II. struct serve structure struct servent { char *s_name; /* official service name */ char **s_aliases; /* alias list */ int s_port; /* ...

Posted on Tue, 19 Nov 2019 15:48:14 -0500 by tsg

Python Serial 52-SOCKET Programming Example

1. UDP Programming Client: The party that initiated the access. 2. Server Side 3.server Segment Programming (1) Set up a socket, which is an instance responsible for specific communication (2) Binding, assigning fixed ports and IP addresses to socket s created (3) Accept the content sent by the other party (4) Send feedback to the other party, ...

Posted on Tue, 19 Nov 2019 15:32:48 -0500 by cactuscake

The simple realization of C ා serial port scanning gun

Simple realization of serial port scanning gun The realization of scanning gun based on serial port communication mainly uses the SerialPort class to represent the serial port resources. The implementation is simple: Tools: usb to RS232 adapter / piece, scanning gun / set, Connect the serial port of scanning gun to the adapter, and plug the ...

Posted on Tue, 19 Nov 2019 15:23:32 -0500 by stow19

Simple task scheduling system

Overview 1 stage of operation and maintenance management 1 manual phase Stare at the server manually. If there is a problem, go to the front of the machine, look up the log, check the status, and operate manually 2 script phase Start to write some automation scripts, start scheduled tasks, automatically start services, monitoring services, ...

Posted on Tue, 19 Nov 2019 10:00:03 -0500 by michaelphipps

Tong Ge said the evolution history of Java BIO NIO AIO of netty series.md

Hello, I'm Tong Ge. This is the third part of netty series. Welcome to my company to learn the source code & Architecture systematically. Two things first (1) last Friday's article was repeated. It was caused by the wrong timing task setting, which brought us interference. I'm sorry. (2) the results of the previous questionnaire survey co ...

Posted on Tue, 19 Nov 2019 06:18:58 -0500 by project-nz

UDP programming of Java Socket programming

For more information: https://www.yuque.com/shizhiy... UDP programming of Java Socket programming UDP (User Datagram Protocol) is connectionless, unreliable, unordered and fastIn data transmission, first define the data to be transmitted as Datagram, and limit the size to 64k. In the Datagram, indicate the Socket (host address and port number) ...

Posted on Mon, 18 Nov 2019 10:03:01 -0500 by sandrob57

OkHttp3 source detailed explanation interceptor

First, construct a simple asynchronous network access Demo: 1. OkHttpClient client = new OkHttpClient(); 2. Request request = new Request.Builder() 3. .url("http://publicobject.com/helloworld.txt") 4. .build(); 6. client.newCall(request).enqueue(new Callback() { 7. @Override 8. public void onFailure(Call call, IOException e) { ...

Posted on Mon, 18 Nov 2019 04:57:46 -0500 by eldee

How to set the visible function of chat and speech in live APP

Chat function is an important function in live APP production. In the development, it often involves different processing of received and sent messages according to different user classifications The treatment is as follows:1. When the user enters the room link socket, enter the specific room according to the user's properties if(socke ...

Posted on Sun, 17 Nov 2019 10:24:46 -0500 by anthrt

WebRTC: A simple example of video chat

Introduction to related API s In the previous section, we have introduced some important knowledge points related to WebRTC, including the network protocols involved, session description protocols, how to make network penetration, and so on. The rest is the API of WebRTC. There are many API s related to WebRTC communication, which mainly accomp ...

Posted on Sun, 17 Nov 2019 02:33:03 -0500 by gacon