okhttp3源码初探

  • 简介
  • GET请求
    • 使用
    • 源码阅读
      • 发起请求
      • eventListener的由来
      • 真正的网络请求
      • 拦截器
        • RetryAndFollowUpInterceptor拦截器
        • BridgeInterceptor拦截器
        • CacheInterceptor拦截器
        • ConnectInterceptor
        • CallServerInterceptor
    • 待续

简介

okhttp3 是目前android平台最流行的网络访问框架,而目前大火的retrofit底层封装的也是OKHttp。所以可以这么说,okhttp是我们做android 开发的过程中绕不过的一座大山。
但是由于okhttp实在太易用了,几句代码就可以完成网络请求的发起,导致我们很少去了解okhttp底层去做了什么。但是俗话说的好“要知其然还要知其所以然”,然而我们现在“知其然”都做不到。所以接下来我们便去看看okhttp底层到底做了什么。

GET请求

使用

public class OkhttpTestActivity extends AppCompatActivity {private static final String TAG = "OkhttpTestActivity";private Button button;private TextView textView;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_okhttp_test);button= (Button) findViewById(R.id.btn_send_get);textView= (TextView) findViewById(R.id.tv_display);button.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {sendGetRequest();}});}private void sendGetRequest() {String url = "http://wwww.baidu.com";final OkHttpClient okHttpClient = new OkHttpClient();final Request request = new Request.Builder().url(url).get()//默认就是GET请求,可以不写.build();Call call = okHttpClient.newCall(request);call.enqueue(new Callback() {@Overridepublic void onFailure(Call call, IOException e) {Log.d(TAG, "onFailure: ");}@Overridepublic void onResponse(Call call, Response response) throws IOException {
//                Log.d(TAG, "onResponse: " + response.body().string());final String content=response.body().string();OkhttpTestActivity.this.runOnUiThread(new Runnable() {@Overridepublic void run() {textView.setText(content);}});}});}
}

这里就是最基本的一个基于okhttp的网络请求。

源码阅读

发起请求

这里我们选择call.enqueue,请求执行的时候作为整个源码阅读的起点,因为前面的构造方法都很简单,Request使用了Builder模式,然后再利用request构造了call对象。最后执行。

//okhttp3.RealCall@Override public void enqueue(Callback responseCallback) {synchronized (this) {//判断该请求是否已经发起,如果已经发起,则抛出错误if (executed) throw new IllegalStateException("Already Executed");executed = true;}//这句话好像是用来监测内存泄露的,其实我也不太确定 O(∩_∩)O哈哈~//反正不影响主流程,我们暂且跳过captureCallStackTrace();eventListener.callStart(this);//真实开始执行请求client.dispatcher().enqueue(new AsyncCall(responseCallback));}

eventListener的由来

上面的代码很简单,不过这个eventListener的来源可是很值得探究的。这首先要从okhttp的对象的构建开始看起。

  public OkHttpClient() {this(new Builder());}//利用了Builder的模式,简化了okhttp的构建过程OkHttpClient(Builder builder) {//....this.eventListenerFactory = builder.eventListenerFactory;//....}public static final class Builder {//....EventListener.Factory eventListenerFactory;//....public Builder() {//....eventListenerFactory = EventListener.factory(EventListener.NONE);//....}}
//okhttp3.EventListenerpublic static final EventListener NONE = new EventListener() {};static EventListener.Factory factory(final EventListener listener) {return new EventListener.Factory() {public EventListener create(Call call) {return listener;}};}

嗯么么,一顿操作猛如虎,一看战记0-5。上面的代码虽然多,但是很好懂,如果一切都采用默认值,那么最后okHttpClient对象最后会被赋予一个包含一个空的EventListener的EventListener.factory。当然我们可以在构建okHttpClient对象的时候传入我们自己的EventListener。那么接下来这里的okHttpClient中的EventListener又是怎么和call勾搭到一起的呢?

//okhttp3.OkHttpClient@Override public Call newCall(Request request) {return RealCall.newRealCall(this, request, false /* for web socket */);}//okhttp3.RealCallstatic RealCall newRealCall(OkHttpClient client, Request originalRequest, boolean forWebSocket) {// Safely publish the Call instance to the EventListener.RealCall call = new RealCall(client, originalRequest, forWebSocket);call.eventListener = client.eventListenerFactory().create(call);return call;}

好了,真相大白,也是在构建的时候勾搭到一起的。

那么我接下来继续看真正的网络请求

真正的网络请求

  /** Ready async calls in the order they'll be run. */private final Deque<AsyncCall> readyAsyncCalls = new ArrayDeque<>();synchronized void enqueue(AsyncCall call) {//如果队列中的请求小于maxRequests,并且正在运行的请求小于maxRequestsPerHost,则将其加入请求队列,并且立即执行。if (runningAsyncCalls.size() < maxRequests && runningCallsForHost(call) < maxRequestsPerHost) {runningAsyncCalls.add(call);executorService().execute(call);} else {readyAsyncCalls.add(call);}}

这里通过代码可以看到okhttp 构建了一个CacheThreadPool的线程池,在请求较少时,直接丢入队列并执行。多的时候只丢入队列。那么我们看下这里线程池究竟都执行了什么任务。这里的call是AsyncCall的实例,而AsyncCall 实现了runnable接口,所以我们直接看run方法。但是AsyncCall自己本身并没有run方法,所以这里我们查看AsyncCall的父类NamedRunnable的run方法。

public abstract class NamedRunnable implements Runnable {protected final String name;public NamedRunnable(String format, Object... args) {this.name = Util.format(format, args);}@Override public final void run() {String oldName = Thread.currentThread().getName();Thread.currentThread().setName(name);try {execute();} finally {Thread.currentThread().setName(oldName);}}protected abstract void execute();
}

这里调用了抽象方法execute,所以我们去看AsyncCall中的实现

@Override protected void execute() {boolean signalledCallback = false;try {//获取接口获取的内容,这里为同步方法Response response = getResponseWithInterceptorChain();if (retryAndFollowUpInterceptor.isCanceled()) {signalledCallback = true;responseCallback.onFailure(RealCall.this, new IOException("Canceled"));} else {signalledCallback = true;responseCallback.onResponse(RealCall.this, response);}} catch (IOException e) {if (signalledCallback) {// Do not signal the callback twice!Platform.get().log(INFO, "Callback failure for " + toLoggableString(), e);} else {eventListener.callFailed(RealCall.this, e);responseCallback.onFailure(RealCall.this, e);}} finally {client.dispatcher().finished(this);}}

这里其实只有一句重点,就是获取接口内容的那句,其他都是异常处理。唯一值得我们注意的可能就是最后再finally中执行了finished的方法,这里其实也就是调用了我们的回调中的finished方法,这样就确保了我们的finished的方法,肯定可以得到调用。

拦截器

  Response getResponseWithInterceptorChain() throws IOException {// Build a full stack of interceptors.//此处的interceptors 便是如雷贯耳的拦截器List<Interceptor> interceptors = new ArrayList<>();//拦截器列表中添加用户自定义的拦截器,这里用户添加的拦截器可以拦截所有的请求,包括从缓存走的,不经过网络的请求interceptors.addAll(client.interceptors());//此拦截器,用于访问失败的时候进行重定向interceptors.add(retryAndFollowUpInterceptor);//这个拦截器,用户将用户的参数转换为网络参数。例如用户设置了body.contentType,//则会在此拦截器中执行,requestBuilder.header("Content-Type", contentType.toString());interceptors.add(new BridgeInterceptor(client.cookieJar()));//缓存相关拦截器interceptors.add(new CacheInterceptor(client.internalCache()));//提前打开一个网络连接interceptors.add(new ConnectInterceptor(client));if (!forWebSocket) {//添加用户自定义的网络拦截器,这里只能拦截真正的网络请求interceptors.addAll(client.networkInterceptors());}//最后一个拦截器,用于从网络获取数据interceptors.add(new CallServerInterceptor(forWebSocket));//构建一个Chain 实例Interceptor.Chain chain = new RealInterceptorChain(interceptors, null, null, null, 0,originalRequest, this, eventListener, client.connectTimeoutMillis(),client.readTimeoutMillis(), client.writeTimeoutMillis());//调用chain的proceed方法,并传入,我们最初构建的request。这里的originalRequest,就是我们//Call call = okHttpClient.newCall(request); 的时候,传递的request。return chain.proceed(originalRequest);}

好了,接下来,我们就看下最初的Chain 的相关代码

  @Override public Response proceed(Request request) throws IOException {return proceed(request, streamAllocation, httpCodec, connection);}public Response proceed(Request request, StreamAllocation streamAllocation, HttpCodec httpCodec,RealConnection connection) throws IOException {//......// Call the next interceptor in the chain.// 构建一个新的chain ,并将其index+1RealInterceptorChain next = new RealInterceptorChain(interceptors, streamAllocation, httpCodec,connection, index + 1, request, call, eventListener, connectTimeout, readTimeout,writeTimeout);//取出第一个拦截器Interceptor interceptor = interceptors.get(index);//执行拦截器的intercept方法并将新的chain方法传入。Response response = interceptor.intercept(next);//....return response;}

RetryAndFollowUpInterceptor拦截器

这里,我们假设用户没有传入自定义的拦截器,那么接下来执行的拦截器,就是RetryAndFollowUpInterceptor,接下来我们就查看一下RetryAndFollowUpInterceptor的相关源码

@Override public Response intercept(Chain chain) throws IOException {RealInterceptorChain realChain = (RealInterceptorChain) chain;//.......while (true) {//这里是一个死循环,okhttp3会不断的重试访问,除非访问成功,或者取消访问。或者抛出其他异常if (canceled) {streamAllocation.release();throw new IOException("Canceled");}//.....//重点看这里。这里又去调用了,一开始的realChain的proceed方法。从这里大家可以看出来,这里就是典型的责任链模式,只不过//和模板责任链不太相同的是,就是这里专门把传递工作到下一级的方法抽离出来由一个统一的方法去处理response = realChain.proceed(request, streamAllocation, null, null);releaseConnection = false;//.....// Attach the prior response if it exists. Such responses never have a body.if (priorResponse != null) {response = response.newBuilder().priorResponse(priorResponse.newBuilder().body(null).build()).build();}Request followUp = followUpRequest(response, streamAllocation.route());if (followUp == null) {if (!forWebSocket) {streamAllocation.release();}return response;}//....request = followUp;priorResponse = response;}}

其实,几乎每个拦截器都是如此的处理,所以接下来,我们只需要看我们关心的具体的拦截器中的具体业务代码即可。

BridgeInterceptor拦截器

  @Override public Response intercept(Chain chain) throws IOException {Request userRequest = chain.request();Request.Builder requestBuilder = userRequest.newBuilder();RequestBody body = userRequest.body();//如果body 不为null的话,则将参数转换为网络参数if (body != null) {MediaType contentType = body.contentType();if (contentType != null) {requestBuilder.header("Content-Type", contentType.toString());}long contentLength = body.contentLength();if (contentLength != -1) {requestBuilder.header("Content-Length", Long.toString(contentLength));requestBuilder.removeHeader("Transfer-Encoding");} else {requestBuilder.header("Transfer-Encoding", "chunked");requestBuilder.removeHeader("Content-Length");}}//将host转换为网络参数if (userRequest.header("Host") == null) {requestBuilder.header("Host", hostHeader(userRequest.url(), false));}//将connection转换为网络参数if (userRequest.header("Connection") == null) {requestBuilder.header("Connection", "Keep-Alive");}// If we add an "Accept-Encoding: gzip" header field we're responsible for also decompressing// the transfer stream.boolean transparentGzip = false;//添加Accept-Encoding默认参数if (userRequest.header("Accept-Encoding") == null && userRequest.header("Range") == null) {transparentGzip = true;requestBuilder.header("Accept-Encoding", "gzip");}List<Cookie> cookies = cookieJar.loadForRequest(userRequest.url());//转换cookies为网络参数if (!cookies.isEmpty()) {requestBuilder.header("Cookie", cookieHeader(cookies));}//添加User-Agent默认值if (userRequest.header("User-Agent") == null) {requestBuilder.header("User-Agent", Version.userAgent());}//将请求向下传递Response networkResponse = chain.proceed(requestBuilder.build());//解析返回结果的cookieHttpHeaders.receiveHeaders(cookieJar, userRequest.url(), networkResponse.headers());Response.Builder responseBuilder = networkResponse.newBuilder().request(userRequest);//将网络返回的headers转换为application Headers.if (transparentGzip&& "gzip".equalsIgnoreCase(networkResponse.header("Content-Encoding"))&& HttpHeaders.hasBody(networkResponse)) {GzipSource responseBody = new GzipSource(networkResponse.body().source());Headers strippedHeaders = networkResponse.headers().newBuilder().removeAll("Content-Encoding").removeAll("Content-Length").build();responseBuilder.headers(strippedHeaders);String contentType = networkResponse.header("Content-Type");responseBuilder.body(new RealResponseBody(contentType, -1L, Okio.buffer(responseBody)));}return responseBuilder.build();}

其实这个函数的主要功能就如同它的自我描述一样,就是把application header 转换为网络 header.

CacheInterceptor拦截器

  @Override public Response intercept(Chain chain) throws IOException {//取出缓存的responseResponse cacheCandidate = cache != null? cache.get(chain.request()): null;long now = System.currentTimeMillis();//构建缓存策略CacheStrategy strategy = new CacheStrategy.Factory(now, chain.request(), cacheCandidate).get();Request networkRequest = strategy.networkRequest;Response cacheResponse = strategy.cacheResponse;if (cache != null) {cache.trackResponse(strategy);}if (cacheCandidate != null && cacheResponse == null) {closeQuietly(cacheCandidate.body()); // The cache candidate wasn't applicable. Close it.}// If we're forbidden from using the network and the cache is insufficient, fail.//如果网络请求为空,并且cache也为空的话,则直接返回504if (networkRequest == null && cacheResponse == null) {return new Response.Builder().request(chain.request()).protocol(Protocol.HTTP_1_1).code(504).message("Unsatisfiable Request (only-if-cached)").body(Util.EMPTY_RESPONSE).sentRequestAtMillis(-1L).receivedResponseAtMillis(System.currentTimeMillis()).build();}// If we don't need the network, we're done.//网络请求为空,cache不会空,则返回cacheif (networkRequest == null) {return cacheResponse.newBuilder().cacheResponse(stripBody(cacheResponse)).build();}Response networkResponse = null;try {networkResponse = chain.proceed(networkRequest);} finally {// If we're crashing on I/O or otherwise, don't leak the cache body.if (networkResponse == null && cacheCandidate != null) {closeQuietly(cacheCandidate.body());}}// If we have a cache response too, then we're doing a conditional get.if (cacheResponse != null) {//如果网络数据和上次相比没有修改,则直接返回缓存if (networkResponse.code() == HTTP_NOT_MODIFIED) {Response response = cacheResponse.newBuilder().headers(combine(cacheResponse.headers(), networkResponse.headers())).sentRequestAtMillis(networkResponse.sentRequestAtMillis()).receivedResponseAtMillis(networkResponse.receivedResponseAtMillis()).cacheResponse(stripBody(cacheResponse)).networkResponse(stripBody(networkResponse)).build();networkResponse.body().close();// Update the cache after combining headers but before stripping the// Content-Encoding header (as performed by initContentStream()).cache.trackConditionalCacheHit();cache.update(cacheResponse, response);return response;} else {closeQuietly(cacheResponse.body());}}Response response = networkResponse.newBuilder().cacheResponse(stripBody(cacheResponse)).networkResponse(stripBody(networkResponse)).build();if (cache != null) {if (HttpHeaders.hasBody(response) && CacheStrategy.isCacheable(response, networkRequest)) {// Offer this request to the cache.//缓存这次网络请求CacheRequest cacheRequest = cache.put(response);return cacheWritingResponse(cacheRequest, response);}if (HttpMethod.invalidatesCache(networkRequest.method())) {try {cache.remove(networkRequest);} catch (IOException ignored) {// The cache cannot be written.}}}return response;}

ConnectInterceptor

 @Override public Response intercept(Chain chain) throws IOException {RealInterceptorChain realChain = (RealInterceptorChain) chain;Request request = realChain.request();StreamAllocation streamAllocation = realChain.streamAllocation();// We need the network to satisfy this request. Possibly for validating a conditional GET.boolean doExtensiveHealthChecks = !request.method().equals("GET");//httpCodec是一个流的管理接口,Http2Codec实现了这个接口。在这里的时候已经打开了连接HttpCodec httpCodec = streamAllocation.newStream(client, chain, doExtensiveHealthChecks);//这里只是单纯的将连接返回。RealConnection connection = streamAllocation.connection();return realChain.proceed(request, streamAllocation, httpCodec, connection);}

CallServerInterceptor

 @Override public Response intercept(Chain chain) throws IOException {RealInterceptorChain realChain = (RealInterceptorChain) chain;HttpCodec httpCodec = realChain.httpStream();StreamAllocation streamAllocation = realChain.streamAllocation();//获得在上一个拦截器中打开的connectionRealConnection connection = (RealConnection) realChain.connection();Request request = realChain.request();long sentRequestMillis = System.currentTimeMillis();//调用监听事件realChain.eventListener().requestHeadersStart(realChain.call());//将headers写入网络流httpCodec.writeRequestHeaders(request);//打开监听事件realChain.eventListener().requestHeadersEnd(realChain.call(), request);Response.Builder responseBuilder = null;//如果请求不为get (get请求不包含request body),并且request.body不为空if (HttpMethod.permitsRequestBody(request.method()) && request.body() != null) {// If there's a "Expect: 100-continue" header on the request, wait for a "HTTP/1.1 100// Continue" response before transmitting the request body. If we don't get that, return// what we did get (such as a 4xx response) without ever transmitting the request body.//如果请求包含“Expect: 100-continue”,则先判断服务器是否愿意接收消息,如果不愿意,则返回错误码if ("100-continue".equalsIgnoreCase(request.header("Expect"))) {//发出之前构建的requesthttpCodec.flushRequest();realChain.eventListener().responseHeadersStart(realChain.call());//读取服务器传递来的消息responseBuilder = httpCodec.readResponseHeaders(true);}if (responseBuilder == null) {// Write the request body if the "Expect: 100-continue" expectation was met.realChain.eventListener().requestBodyStart(realChain.call());long contentLength = request.body().contentLength();CountingSink requestBodyOut =new CountingSink(httpCodec.createRequestBody(request, contentLength));BufferedSink bufferedRequestBody = Okio.buffer(requestBodyOut);request.body().writeTo(bufferedRequestBody);bufferedRequestBody.close();realChain.eventListener().requestBodyEnd(realChain.call(), requestBodyOut.successfulCount);} else if (!connection.isMultiplexed()) {// If the "Expect: 100-continue" expectation wasn't met, prevent the HTTP/1 connection// from being reused. Otherwise we're still obligated to transmit the request body to// leave the connection in a consistent state.streamAllocation.noNewStreams();}}将消息流推出httpCodec.finishRequest();if (responseBuilder == null) {realChain.eventListener().responseHeadersStart(realChain.call());//读取服务器返回的消息responseBuilder = httpCodec.readResponseHeaders(false);}//构建response消息体Response response = responseBuilder.request(request).handshake(streamAllocation.connection().handshake()).sentRequestAtMillis(sentRequestMillis).receivedResponseAtMillis(System.currentTimeMillis()).build();int code = response.code();if (code == 100) {// server sent a 100-continue even though we did not request one.// try again to read the actual responseresponseBuilder = httpCodec.readResponseHeaders(false);response = responseBuilder.request(request).handshake(streamAllocation.connection().handshake()).sentRequestAtMillis(sentRequestMillis).receivedResponseAtMillis(System.currentTimeMillis()).build();code = response.code();}realChain.eventListener().responseHeadersEnd(realChain.call(), response);if (forWebSocket && code == 101) {// Connection is upgrading, but we need to ensure interceptors see a non-null response body.response = response.newBuilder().body(Util.EMPTY_RESPONSE).build();} else {response = response.newBuilder().body(httpCodec.openResponseBody(response)).build();}if ("close".equalsIgnoreCase(response.request().header("Connection"))|| "close".equalsIgnoreCase(response.header("Connection"))) {streamAllocation.noNewStreams();}if ((code == 204 || code == 205) && response.body().contentLength() > 0) {throw new ProtocolException("HTTP " + code + " had non-zero Content-Length: " + response.body().contentLength());}return response;}

待续

okhttp3源码初探相关推荐

  1. OKHTTP3源码和设计模式(下篇)

    ​ 在<OKHTTP3源码和设计模式(上篇)>,中整体介绍了 OKHttp3 的源码架构,重点讲解了请求任务的分发管理和线程池以及请求执行过程中的拦截器.这一章我们接着往下走认识一下 OK ...

  2. OkHttp3源码解析(三)——连接池复用

    OKHttp3源码解析系列 OkHttp3源码解析(一)之请求流程 OkHttp3源码解析(二)--拦截器链和缓存策略 本文基于OkHttp3的3.11.0版本 implementation 'com ...

  3. Spring-bean的循环依赖以及解决方式___Spring源码初探--Bean的初始化-循环依赖的解决

    本文主要是分析Spring bean的循环依赖,以及Spring的解决方式. 通过这种解决方式,我们可以应用在我们实际开发项目中. 什么是循环依赖? 怎么检测循环依赖 Spring怎么解决循环依赖 S ...

  4. Dinky0.7.0源码初探

    Dinky0.7.0源码初探 1. Dinky简介 ​ 2022年11月25,Dinky0.7.0发布了: ​ Dinky为 " Data Integrate No Knotty " ...

  5. OkHttp3源码详解

    前言:为什么有些人宁愿吃生活的苦也不愿吃学习的苦,大概是因为懒惰吧,学习的苦是需要自己主动去吃的,而生活的苦,你躺着不动它就会来找你了. 一.概述 OKHttp是一个非常优秀的网络请求框架,已经被谷歌 ...

  6. 使用Mahout搭建推荐系统之入门篇3-Mahout源码初探

    2019独角兽企业重金招聘Python工程师标准>>> 用意: 希望了解Mahout中数据的存储方式, 它如何避免java object带来的冗余开销.学完知识,要进行些实战 去分析 ...

  7. OkHttp3源码详解(三) 拦截器-RetryAndFollowUpInterceptor

    最大恢复追逐次数: private static final int MAX_FOLLOW_UPS = 20; 处理的业务: 实例化StreamAllocation,初始化一个Socket连接对象,获 ...

  8. okHttp3 源码分析

    一, 前言 在上一篇博客OkHttp3 使用详解里,我们已经介绍了 OkHttp 发送同步请求和异步请求的基本使用方法. OkHttp 提交网络请求需要经过这样四个步骤: 初始化 OkHttpClie ...

  9. OkHttp3源码分析二 拦截器 上

    在上一篇中,我们大概知道了OkHttp进行网络请求的大概的流程: 按着流程,一个一个的分析. RetryAndFollowUpInterceptor 构造方法: public RetryAndFoll ...

最新文章

  1. 引子 我想大家应该都很熟悉DNS了,这回在DNS前面加了一个D又变成了什么呢?这个D就是Dynamic(动态),也就是说,按照传统,一个域名所对应的IP地址应该是定死的,而使用了DDNS后,域名所对应
  2. 德鲁克的17条思想精髓,读懂管理的本质
  3. 广州线下活动 | 精益运维与 DevOps 最佳实践
  4. OSChina 周一乱弹 ——渴望咪咪还是渴望力量,都能给你
  5. ML之xgboost:利用xgboost算法(自带,特征重要性可视化+且作为阈值训练模型)训练mushroom蘑菇数据集(22+1,6513+1611)来预测蘑菇是否毒性(二分类预测)
  6. boost::sort模块实现使用字符串键和索引函子对结构进行排序的示例
  7. jzoj3385-黑魔法之门【并差集】
  8. WPF中得到一个控件相对其他控件的坐标
  9. Hystrix面试 - Hystrix 隔离策略细粒度控制
  10. 机器学习中的alpha学习率参数
  11. python延时队列_超简便Python任务队列:huey
  12. 深入浅出ES6教程模块化
  13. Java 中单引号和双引号的区别
  14. 2016、11、17
  15. UIImageView的内容模式以及ImageNamed和imageWithContentsOfFile的区别
  16. (转)卫星已经out了,为了获取信息优势对冲基金盯上了“暗网”
  17. 计算机科学导论课后感,关于《计算机科学导论》课程教学的思考
  18. Dubbo视频教程(Dubbo项目实战)
  19. 算法 思维导图(一)
  20. 密码编码学与网络安全 核心理论知识梳理

热门文章

  1. eclipse列名无效_【转】sql使用In语句查询出所有,但子查询列名无效
  2. go 悟空使用demo
  3. playfair密钥矩阵加密--c语言
  4. 无需端口映射,实现外部网络访问Docker集群内部服务
  5. postgres物理备份与恢复
  6. 蠕虫病毒html,HTML 感染 DropFileName = “svchost.exe” Ramnit 蠕虫病毒 查杀解决办法
  7. 徐小平:关了公司以后,我有这些话要对你说
  8. 唐骏:10亿身价的智慧与悲哀~
  9. 自己动手 做rpg小游戏
  10. kafka topic 操作