In ancient times, due to the inconvenience of communication, some smart people made use of the advantages of pigeons flying faster and recognizing directions to domesticate them for the transmission of messages - also known as "pigeon biography".In Java, a network Socket plays the same role.
A Socket is an abstraction layer through ...
Posted on Mon, 19 Aug 2019 18:42:11 -0700 by CrazeD
Introduction to the First Experience of RPC Framework
Project address: https://github.com/shirukai/learn-demo-rpc.git
RPC is called Remote Procedure Call. As its name implies, remote procedure call means remote procedure call. For an introduction ...
Posted on Thu, 15 Aug 2019 03:09:04 -0700 by walexman
In muduo, there is only one way to disconnect the connection, that is, passive closure, that is, read returns 0. (Active closure is added to the socket, of course). This paper discusses the process of passive closure.
First, in TcpConnection::ha ...
Posted on Tue, 13 Aug 2019 20:09:16 -0700 by mikeschroeder
Links to the original text: https://www.jianshu.com/u/8f2987e2f9fb
ajax polling, ajax polling principle is very simple, let the browser every few seconds to send a request, ask the server whether there is new information.
1. Backen ...
Posted on Sat, 03 Aug 2019 01:01:29 -0700 by zilem
The content and knowledge of using protobuf protocol to interact with server data are recorded here.It involves basic computer knowledge, such as bytes, buffer buffers, size terminals, etc.
1 byte represents 8 bit binary, 1 bit is 0 or 1, which is also the smallest unit of computer.
Uint and Int
Int is a signed integer, and Uint is ...
Posted on Fri, 02 Aug 2019 22:19:06 -0700 by Bobulous
Computer network: refers to the computer system that realizes resource sharing and information under the management and coordination of network operating system and network management software, i.e. network communication protocol, by connecting the external equipment of multiple co ...
Posted on Fri, 02 Aug 2019 02:37:53 -0700 by evolve4
1. Which io mode does libevent use as the underlying implementation
libevent actually encapsulates many IO multiplexing modes, such as evport,select,poll,epoll,devpoll and so on. These are all I/O multiplexing modes under different operating systems. How do we know which mode we are currently using?
Speaking of the underlying implementation, we ...
Posted on Thu, 01 Aug 2019 23:08:18 -0700 by irbrian
In the use of Linux system, it is sometimes found that a large number of files (especially log files) have been deleted, but with du to view the disk, the space is still not reduced. This very strange problem has recently encountered. This article describes the causes and consequences, and gives some pe ...
Posted on Thu, 01 Aug 2019 22:31:28 -0700 by bleh
apache commons-pool It is an open source object pool component of apache foundation. The common database connection pool dpcp and redis java client jedis use commons-pool to manage connections
Optimizing the creation of objects is the same as the hedonic pattern in the design pattern
Pooled Object Pooled O ...
Posted on Tue, 30 Jul 2019 01:54:55 -0700 by azn
In a building, a real-time monitoring device was installed. But because the building is still in the state of full construction, so this monitoring equipment, constantly pinched by the construction party, disconnected network and so on, is in a state of great danger. So, I've been wondering if there ...
Posted on Mon, 29 Jul 2019 22:12:53 -0700 by bhogg