C programming under Linux: TCP/IP network communication

Today, I will talk about Socket communication under Linux, including client and server. Customer service terminal The idea of connecting the client to the server is as follows:1. Establish Socket link, 2. Set the communication mode, IP and port of the server, and specifically set sockaddr_in, the ...

Added by lemonpiesaregood on Wed, 24 Jun 2020 10:11:07 +0300

JAVA-IO streaming advanced NIO

NIO Java NIO (New IO) is a new IO API introduced from Java version 1.4. NIO has the same function and purpose as the original IO, but it is used in a totally different way. NIO supports buffer oriented, channel based IO operations. NIO will read and write files in a more efficient way. Main differences ...

Added by Bill H on Tue, 16 Jun 2020 10:48:24 +0300

Raspberry school learning notes - temperature and humidity detection (local OLED display, ONENET cloud platform display)

Article catalog preface 1, Hardware connection 2, Raspberry pie enable I2C function 1. Enable I2C Kernel Module 2. Install I2C tools 3, Local temperature display 1. Installation luma.oled 's bag 2. Light up the oled screen 3. Local temperature and humidity detection 4, ONENET cloud platform displ ...

Added by matts12290 on Thu, 11 Jun 2020 10:48:32 +0300

Graphic io+BIO+NIO+AIO+Netty + chat room practice

The beginning of 2020 is extraordinary. I will stay at home and study io again io is divided into bio,nio,aio Among them, netty belongs to nio, and aio has not been widely used, so it has great potential in the future Understand several concepts Synchronous and asynchronous Blocking and non blockingio m ...

Added by PW on Wed, 10 Jun 2020 06:42:48 +0300

Implement simple chat function 1 to 1 based on netty (private message / group sending)

netty chat explain: My thoughts demonstration Chat server Chat initialization configuration Client processing message Front end code epilogue explain: I found that it takes a lot of energy to write a blog. In order to leave more time for promotion, I just post the code. Learning address: https: ...

Added by toppac on Sun, 07 Jun 2020 07:35:12 +0300

Talk about puma's DefaultTaskExecutor

order This paper focuses on puma's DefaultTaskExecutor TaskExecutor puma/puma/src/main/java/com/dianping/puma/taskexecutor/TaskExecutor.java public interface TaskExecutor extends LifeCycle { boolean isStop(); boolean isMerging(); void stopUntil(long timestamp); void cancelStopUntil(); void setContext(PumaContext context ...

Added by tsg on Wed, 03 Jun 2020 19:14:37 +0300

Asp.Net MVC based on Fleck's development of multi person web chat room

1, Core description of the project 1. Fleck is a relatively simple third-party component to implement websocket, which does not need to install additional containers. There are also several interfaces available. 2. The project is based on. net framework 4.7.2, developed on vs2019, and has not tried to run on the lower version. However, the new ...

Added by will_1990 on Sun, 31 May 2020 14:21:09 +0300

Istio traffic hijacking process

Opening The article about Istio traffic hijacking can be found in a very detailed article in the servicemesher community at present. You can refer to: Sidecar injection and transparent traffic hijacking in Istio . In particular, the "traffic hijacking diagram" collated by the blogger can clearly see the hijacking process. Here I use ...

Added by river001 on Fri, 29 May 2020 09:27:35 +0300

suricata uses pfring to monitor multiple network cards for error analysis and resolution

Problem scenarios We use Suricata for traffic analysis. Suricata is deployed on a 48-core physical machine with a multi-network card. Due to business needs, suricata's network card for monitoring traffic has been upgraded from 5 to 6, enp176s0f1 has been added, and several similar errors have been found in suricata's log: <Error> - [ERRC ...

Added by pandaweb on Tue, 26 May 2020 21:51:27 +0300

Five communication modes between processes

Source: https://blog.csdn.net/wh_sjc/article/details/70283843   IPC (InterProcess Communication) refers to the communication or exchange of information between different processes. IPC usually includes pipeline (including nameless pipeline and named pipeline), message queue, semaphore, shared storage, socket, Streams, etc. Soc ...

Added by ValdouaD on Mon, 18 May 2020 09:00:24 +0300