RILD - Chapter IV - LibRIL Register
IV. LibRIL Start Registration
Unicom RILJ and RILC
The init function parameter s_rilEnv of the previous Reference RIL passes LibRIL callbacks into Reference RIL so that Reference RIL can pass data to LibRIL.
The return value of the init function returns its callback function funcs, so that LibRIL can pass data to the Reference RIL.
This st ...
Posted by ArizonaJohn on Sat, 09 Feb 2019 03:12:17 -0800
Go36-44,45-File Operation (os.File)
os package
Through the os package, you can have the ability to manipulate the computer operating system. This code package provides platform-independent API s. Whether it is Linux, macOS, Windows, FreeBSD, OpenBSD, Plan9, os packages can provide a unified use interface. In this way, different operating systems can be manipulated in the same wa ...
Posted by Rabioza123 on Fri, 08 Feb 2019 05:51:16 -0800
Socket java.net.SocketException: Solution to Connection reset
Background:
Server-side communication: TCP/IP socket short link.
First look at my original socket code:
public static byte[] sendMessage(String url, int port, byte[] request, int timeout) {
byte[] res = null;
Socket socket = null;
InputStream is = null;
OutputStream os = null;
try {
...
Posted by like_php on Thu, 07 Feb 2019 15:33:16 -0800
Java Distributed Component - RPC (Handwritten RPC)
RPC
Remote Procedure Call - A remote call procedure. It is a protocol that requests services from remote computer programs over a network without understanding the underlying network technology.
constitute
Network protocol
TCP or UDP Socket Programming
Input and output streams (object streams)
ObjectOutput ...
Posted by joozt on Wed, 06 Feb 2019 04:06:17 -0800
NoeJs socket.io module--Implementing Websocket protocol
NoeJs socket. IO module - Implementing Websocket protocol
Believe that the little friends who read this article have a certain understanding of the Websocket protocol, here the little brother will not talk nonsense, directly on the code.
Server side
Background is node, using socket.io module, first install it.
npm install ...
Posted by charmedp3 on Tue, 05 Feb 2019 06:06:16 -0800
Install MySQL 5.5.61, Apache 2.2.34, PHP 5.6.37 - LAMP Architecture (1) - MySQL under CentOS 6.9
This article
1. Install and configure MySQL 5.5
1) Installation
Download dependency:
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fspro ...
Posted by dwnz on Mon, 04 Feb 2019 03:18:16 -0800
Running Principle of Spark Streaming
Sequence diagram
1. NetworkWordCount
2. Initialize StreamingContext
3. Create InputDStream
4. Start Job Scheduler
1. NetworkWordCount
package yk.streaming
import org.apache.spark.SparkConf
import org.apache.spark.storage.StorageLevel
import org.apache.spark.streaming.{Seconds, StreamingContext}
object NetworkWordCount { ...
Posted by bsarika on Sun, 03 Feb 2019 15:03:16 -0800
android source code analysis (2)
Android Startup Key Points
When the system bootstrapper starts the Linux kernel, the kernel loads various data structures and drivers.
Once you have the driver, start the Android system and load the first user-level process: init
system/core/init/Init.c:
int main(int argc, char **argv){
……
// Create various folders and mount ...
Posted by tHud on Sat, 02 Feb 2019 00:36:15 -0800
Talk about storm's Assignment Distribution Service
order
This paper mainly studies Assignment Distribution Service of storm.
AssignmentDistributionService
storm-2.0.0/storm-server/src/main/java/org/apache/storm/nimbus/AssignmentDistributionService.java
/**
* A service for distributing master assignments to supervisors, this service makes the assignments notification
* asynchronous.
*
* < ...
Posted by SirChick on Fri, 01 Feb 2019 22:21:17 -0800
Nio learning
Nio learning
The article is a summary of my own study. If there is any misunderstanding, please leave a message.
What is Nio?
The full name of java.nio is java non-blocking IO (actually new io), which refers to the new api (New IO) provided in jdk1.4 and above for all primitive types (except boolean types). cache Supported data container, which ...
Posted by Chevy on Thu, 31 Jan 2019 20:51:16 -0800