Menu

  • Home
  • Work
    • Cloud
      • Virtualization
      • IaaS
      • PaaS
    • Java
    • Go
    • C
    • C++
    • JavaScript
    • PHP
    • Python
    • Architecture
    • Others
      • Assembly
      • Ruby
      • Perl
      • Lua
      • Rust
      • XML
      • Network
      • IoT
      • GIS
      • Algorithm
      • AI
      • Math
      • RE
      • Graphic
    • OS
      • Linux
      • Windows
      • Mac OS X
    • BigData
    • Database
      • MySQL
      • Oracle
    • Mobile
      • Android
      • IOS
    • Web
      • HTML
      • CSS
  • Life
    • Cooking
    • Travel
    • Gardening
  • Gallery
  • Video
  • Music
  • Essay
  • Home
  • Work
    • Cloud
      • Virtualization
      • IaaS
      • PaaS
    • Java
    • Go
    • C
    • C++
    • JavaScript
    • PHP
    • Python
    • Architecture
    • Others
      • Assembly
      • Ruby
      • Perl
      • Lua
      • Rust
      • XML
      • Network
      • IoT
      • GIS
      • Algorithm
      • AI
      • Math
      • RE
      • Graphic
    • OS
      • Linux
      • Windows
      • Mac OS X
    • BigData
    • Database
      • MySQL
      • Oracle
    • Mobile
      • Android
      • IOS
    • Web
      • HTML
      • CSS
  • Life
    • Cooking
    • Travel
    • Gardening
  • Gallery
  • Video
  • Music
  • Essay

Go语言网络编程

2
Feb
2017

Go语言网络编程

By Alex
/ in Go
/ tags 网络编程
0 Comments
TCP
net

该包提供了网络I/O的可移植接口,支持TCP/IP、UDP、DNS查询、Unix域套接字。

尽管此包提供了访问低级网络原语,但是大部分客户端仅仅需要Dial、Listen、Accept等基本函数,以及关联的Conn、Listener接口。

客户端

Dial函数用于连接到正在监听的服务器:

Go
1
2
3
4
5
6
7
8
9
10
11
// 发起TCP连接
conn, err := net.Dial("tcp", "hongkong.gmem.cc:80")
if err == nil {
    // Conn是Writer,支持写入
    fmt.Fprintf(conn, "GET / HTTP/1.0\r\n\r\n")
    // Conn还是Reader,下面读取直到遇到第一个换行
    bs := bufio.NewScanner(conn)
    for bs.Scan() {
        fmt.Println(bs.Text())
    }
}
服务器 

Listen函数用于创建服务器并监听端口:

Go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import (
    "net"
    "bufio"
    "fmt"
    "time"
)
 
func handleConn(conn net.Conn) {
    conn.Write([]byte("欢迎\n"))
}
func Server() {
    // 返回一个Listener
    ln, _ := net.Listen("tcp", ":8080")
    for {
        // 每接收到一个连接,就交给子Goroutine处理
        conn, _ := ln.Accept()
        go handleConn(conn)
    }
}
func Client() {
    conn, _ := net.Dial("tcp", "localhost:8080")
    bs := bufio.NewScanner(conn)
    bs.Split(bufio.ScanLines)
    bs.Scan()
    msg := bs.Text()
    conn.Close()
    fmt.Println(msg)
}
func main() {
    go Server()
    for i := 0; i < 10; i++ {
        go Client()
    }
    time.Sleep(time.Second)
}
DNS

使用net包可以完成DNS查询:

Go
1
2
3
4
5
6
7
8
addrs, _ := net.LookupHost("tk.gmem.cc")
for _, addr := range addrs {
    println(addr) // 打印IP地址
}
names, _ := net.LookupAddr("108.61.247.199")
for _, name := range names {
    println(name) // 打印反查得到的域名
}
HTTP
net.http

此包提供了HTTP客户端和服务器的实现。

客户端

简单的客户端代码示例:

Go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// GET请求
resp, err := http.Get("http://tokyo.gmem.cc")
if err == nil {
    println(resp.StatusCode)
    body, _ := ioutil.ReadAll(resp.Body)
    println(string(body))
}
 
// 通过POST提交表单
resp, _ := http.PostForm("http://tokyo.gmem.cc/article/new", url.Values{
    "name": {"Alex"},
    "id":   "1",
})
 
// 通过POST上传文件
resp, _ := http.Post("http://tokyo.gmem.cc/avatar/upload", "image/jpeg", &imgBuf)
 
// 客户端必须负责关闭响应体,且必须判断resp是否为nil
if resp != nil {
    // 读取并丢弃剩余的响应主体数据。确保在keepalive http连接行为开启的情况下,可以被另一个请求复用
    defer resp.Body.Close()
}
 
// 标准http库默认只在HTTP服务器要求关闭时才会关闭网络连接。要在请求完成后立即关闭连接,使用下面的头
req.Header.Add("Connection", "close")
 
// 禁用HTTP keep-alive。在向大量服务器发送少量请求时可以禁用
tr := &http.Transport{DisableKeepAlives: true}
client := &http.Client{Transport: tr}

如果需要控制请求头、重定向策略和其它设置,可以使用Client: 

Go
1
2
3
4
5
6
7
8
9
10
11
12
13
// 重定向策略               新请求        已经被重定向的请求,最老的为第一个元素
// 默认策略是允许10次重定向
redirectPolicy := func(req *http.Request, via []*http.Request) error {
    return nil
}
 
hc := &http.Client{CheckRedirect: redirectPolicy}
// 创建一个请求对象
req, _ := http.NewRequest("GET", "http://tk.gmem.cc", nil)
// 设置请求头
req.Header.Add("Accept", "text/html")
// 执行请求
resp, _ := hc.Do(req)

如果要控制传输相关的属性,例如代理、TLS配置、Keep-Alive、压缩,可以使用Transport: 

Go
1
2
3
4
5
6
7
8
9
10
tr := &http.Transport{
    // 最大空闲的TCP连接数
    MaxIdleConns: 10,
    // 空闲超时时间
    IdleConnTimeout: 30 * time.Second,
    // 是否禁用压缩
    DisableCompression: true,
}
client := &http.Client{Transport: tr}
resp, _ := client.Get("https://tk.gmem.cc")

进行超时控制:

Go
1
2
3
4
5
6
7
8
req, err := http.NewRequest("GET", u.String(), nil)
// 超时自动取消的上下文               // 默认是后台上下文
ctx, cancel := context.WithTimeout(req.Context(), 5*time.Second)
defer cancel()
// 使用超时上下文进行请求
r, err := http.DefaultClient.Do(req.WithContext(ctx))
defer r.Body.Close()
b, err := ioutil.ReadAll(r.Body)

如果服务器使用不受信任证书,可以跳过证书校验:

Go
1
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true} 
服务器

创建简单的服务器:

Go
1
2
3
4
5
6
7
8
9
10
11
// 为DefaultServeMux添加Handler
http.HandleFunc("/greetings", func(w http.ResponseWriter, r *http.Request) {
    fmt.Fprintf(w, "Hello %v", r.URL.Query().Get("name"))
});
 
// handle为nil则使用DefaultServeMux
http.ListenAndServe(":8800", nil)
 
wg := sync.WaitGroup{}
wg.Add(1)
wg.Wait()

如果需要定制各项参数,可以使用Server: 

Go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
type reqHandler int
 
func (rh reqHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
    // 从URL抽取请求参数
    values, ok := r.URL.Query()["key"]
    // 读取Cookie
    cookie, err := r.Cookie("token")
    // 抽取表单参数
    r.ParseForm()
    // 读取单个参数
    value := r.Form["key"][0]
    // 读取全部参数
    var params map[stirng][]string = r.PostForm
 
    // 读取请求体中的JSON并反序列化
    decoder := json.NewDecoder(r.Body)
    var user User
    err := decoder.Decode(&user)
    // 关闭请求体
    defer req.Body.Close()
}
 
func main() {
    s := &http.Server{
        Addr:           ":8080",
        Handler:        reqHandler(0),
        ReadTimeout:    10 * time.Second,
        WriteTimeout:   10 * time.Second,
        MaxHeaderBytes: 1 << 20,
    }
    s.ListenAndServe()
}
多路器

要实现服务器端的请求处理多路器(multiplexer),参考下面的代码:

Go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
mux := http.DefaultServeMux
// 每个路径都必须由http.Handler处理
mux.Handle("/metrics", promhttp.Handler())
// 处理器示例
mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
    // 写响应头
    w.WriteHeader(http.StatusOK)
    // 写响应体
    w.Write([]byte("OK"))
})
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
    // 读取请求体
    body, err := ioutil.ReadAll(r.Body)
    defer r.Body.Close()
    // 解析为对象
    payload := &flaggerv1.CanaryWebhookPayload{}
    err = json.Unmarshal(body, payload)
    if err != nil {
        w.WriteHeader(http.StatusBadRequest)
        return
    }
    w.WriteHeader(http.StatusAccepted)
})
// 创建HTTP服务器
srv := &http.Server{
    Addr:         ":" + port,
    Handler:      mux,
    ReadTimeout:  5 * time.Second,
    WriteTimeout: 1 * time.Minute,
    IdleTimeout:  15 * time.Second,
}
 
// 在后台启动服务器
go func() {
    if err := srv.ListenAndServe(); err != http.ErrServerClosed {
        logger.Fatalf("HTTP server crashed %v", err)
    }
}()
 
// 等待信号
<-stopCh
 
// 时限内关闭服务器
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
 
if err := srv.Shutdown(ctx); err != nil {
    logger.Errorf("HTTP server graceful shutdown failed %v", err)
} else {
    logger.Info("HTTP server stopped")
}
net.url

此包支持对URL进行操控:

Go
1
2
3
4
5
6
// 解析绝对URL
promURL, err := url.Parse("http://prometheus.istio-system.svc.k8s.gmem.cc:9090")
// 解析相对URL
u, err := url.Parse("./api/v1/status/flags")
// 组合
u = promURL.ResolveReference(u)
imroc/req

更加人性化、简单的HTTP客户端,执行下面的命令安装:

Shell
1
go get github.com/imroc/req
发送请求
Go
1
2
3
4
5
6
// 先创建请求对象,再发请求
r := req.New()
r.Get(url)
 
// 或者直接调用函数
req.Get(url)
写请求头/参数 
Go
1
2
3
4
5
6
7
8
9
10
11
header := req.Header{
    "Accept":        "application/json",
    "Authorization": "Basic YWRtaW46YWRtaW4=",
}
 
param := req.Param{
    "name": "imroc",
    "cmd":  "add",
}
 
r, err = req.Post("http://foo.bar/api", header, param)
写请求体
Go
1
2
req.Post(url, req.BodyJSON(&foo))
req.Post(url, req.BodyXML(&bar))
读响应头
Go
1
2
res, err = req.Post("http://foo.bar/api", header, param)
res.Response().Header.Get(headers.ContentType)
读响应体
Go
1
2
3
4
// 按JSON来解析,绑定到对象
r.ToJSON(&buf)
// 按XML来解析,绑定到对象
r.ToXML(&baz)
操控Cookie
Go
1
2
3
4
5
6
7
// 禁用Cookie
req.EnableCookie(false)
 
 
cookie := new(http.Cookie)
// 发送Cookie
req.Get(url, cookie)
文件上传
Go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
req.Post(url, req.File("imroc.png"), req.File("/Users/roc/Pictures/*.png"))
 
 
// 细粒度控制
file, _ := os.Open("imroc.png")
req.Post(url, req.FileUpload{
    File:      file,
    FieldName: "file",       // 表单字段名
    FileName:  "avatar.png", // 上传时使用的文件名
})
 
// 监听上传进度
progress := func(current, total int64) {
    fmt.Println(float32(current)/float32(total)*100, "%")
}
req.Post(url, req.File("/Users/roc/Pictures/*.png"), req.UploadProgress(progress))
fmt.Println("upload complete")
文件下载 
Go
1
2
3
4
5
6
7
8
9
10
11
r, _ := req.Get(url)
r.ToFile("imroc.png")
 
 
// 监听下载进度
progress := func(current, total int64) {
    fmt.Println(float32(current)/float32(total)*100, "%")
}
r, _ := req.Get(url, req.DownloadProgress(progress))
r.ToFile("hello.mp4")
fmt.Println("download complete")
使用代理

默认情况下,环境变量http_proxy、https_proxy自动作为代理服务器。你也可以设置自己的代理服务器:

Go
1
req.SetProxyUrl("http://my.proxy.com:23456")
超时控制 
Go
1
req.SetTimeout(50 * time.Second)
定制http.Client
Go
1
2
3
4
client := &http.Client{Timeout: 30 * time.Second}
req.Get(url, client)
 
req.SetClient(client) 
Web框架
Gorilla

Gorilla是一个Web工具箱,提供了若干个包,具体参考Gorilla学习笔记。

Gin

Gin是目前Star数最高的Go语言的Web框架,具体参考Gin学习笔记。

go-restful

用于构建REST-style的WebService。支持GET、POST、PUT、DELETE、PATCH(更新资源的部分内容)、OPTIONS(获取目标URI的通信选项)等方法。

用法:

Go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import (
    restful "github.com/emicklei/go-restful/v3"
)
 
// Restful容器,其中可以注册多个WebService
// 默认容器:restful.DefaultContainer
//           DefaultContainer = NewContainer()
//           DefaultContainer.ServeMux = http.DefaultServeMux
//
c := restful.NewContainer()
c.ServeMux = http.NewServeMux()
c.Router(restful.CurlyRouter{})
c.RecoverHandler(func(panicReason interface{}, httpWriter http.ResponseWriter) {
    logStackOnRecover(s, panicReason, httpWriter)
})
c.ServiceErrorHandler(func(serviceErr restful.ServiceError, request *restful.Request, response *restful.Response) {
    serviceErrorHandler(s, serviceErr, request, response)
})
 
 
// WebService,需要添加到Restful容器中
ws := new(restful.WebService)
ws.
    Path("/users").
    Consumes(restful.MIME_XML, restful.MIME_JSON).
    Produces(restful.MIME_JSON, restful.MIME_XML)
 
c.Add(u.WebService())
 
http.ListenAndServe(":8080", c.ServeMux)

 

gRPC

请参考gRPC学习笔记。

SSH

包golang.org/x/crypto/ssh提供了SSH协议的支持:

Go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
func main() {
    sess, err := connect("root", "lavender", "xenial-100", 22)
    if err != nil {
        log.Fatalf(err.Error())
    }
    // 将SSH会话的标准输出/错误重定向到当前应用的
    sess.Stdout = os.Stdout
    sess.Stderr = os.Stderr
 
    // 执行命令
    sess.Run("uname -a")
    
    // 执行命令,并获取其标准输出
    result, _ := sess.Output("uname -a")
    fmt.Printf("%s", result)
 
 
 
    // 要执行多个命令,可以
    stdinBuf, _ := ssh.StdinPipe()
    sess.Shell()
    stdinBuf.Write([]byte("ls"))
    stdinBuf.Write([]byte("\n"))
    stdinBuf.Write([]byte("uname"))
    stdinBuf.Write([]byte("\n"))
    
    // 需要调用exit,让会话退出,否则Wait()调用永久阻塞
    stdinBuf.Write([]byte("exit\n"))
    // 需要调用此函数,否则可能过早退出,命令却没有执行
    ssh.Wait()
 
    sess.Close()
}
func connect(user, password, host string, port int) (*ssh.Session, error) {
    var (
        auth         []ssh.AuthMethod
        addr         string
        clientConfig *ssh.ClientConfig
        client       *ssh.Client
        err          error
    )
    auth = make([]ssh.AuthMethod, 0)
    // 身份认证方法,支持密码或sshkey
    auth = append(auth, ssh.Password(password))
 
    clientConfig = &ssh.ClientConfig{
        User:            user,
        Auth:            auth,
        Timeout:         30 * time.Second,
        // 允许任意的服务器公钥
        HostKeyCallback: ssh.InsecureIgnoreHostKey(),
    }
 
    addr = fmt.Sprintf("%s:%d", host, port)
    // 发起连接
    if client, err = ssh.Dial("tcp", addr, clientConfig); err != nil {
        return nil, err
    }
 
    // 创建会话
    return client.NewSession()
}
连接复用

cmux是一个连接复用器,允许在同一个端口上提供不同类型的服务 —— 包括gRPC、SSH、HTTPS、HTTP、Go RPC,等等。

cmux仅仅需要检测一个连接的最开始几个字节,因此对性能的影响是微不足道的。

注意点:

  1. 关于TLS:包net/http基于断言来识别TLS连接,由于cmux使用 lookahead-implementing的连接来装饰底层TCP连接,导致net/http的断言会失败。后果是,你可以使用cmux来服务HTTPS,但是不会为你的Handler设置http.Request.TLS
  2. 一个连接,自始自终必须使用同一协议。也就是说,一个Connection要么使用gRPC,要么使用REST,而不能随意切换
  3. 关于Java的gRPC客户端:此客户端会在接收到服务器返回的SETTINGS帧之前一直阻塞,你应当使用下面的代码:
    Go
    1
    grpcl := m.MatchWithWriters(cmux.HTTP2MatchHeaderFieldSendSettings("content-type", "application/grpc")) 
示例
Go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import "github.com/soheilhy/cmux"
 
// 创建主监听器
l, err := net.Listen("tcp", ":80")
if err != nil {
    log.Fatal(err)
}
 
// 为监听器创建cmux
m := cmux.New(l)
 
// 按照声明顺序,逐个去匹配协议
// 匹配gRPC
grpcL := m.Match(cmux.HTTP2HeaderField("content-type", "application/grpc"))
// 匹配HTTP
httpL := m.Match(cmux.HTTP1Fast())
// 所有不匹配的其它连接请求,都看作Go RPC/TCP
trpcL := m.Match(cmux.Any())
 
 
// 为不同协议创建服务器
//gRPC
grpcS := grpc.NewServer()
grpchello.RegisterGreeterServer(grpcS, &server{})
// HTTP
httpS := &http.Server{
    Handler: &helloHTTP1Handler{},
}
// Go RPC/TCP
trpcS := rpc.NewServer()
trpcS.Register(&ExampleRPCRcvr{})
 
// 将各协议的服务器注册到muxed的监听器
go grpcS.Serve(grpcL)
go httpS.Serve(httpL)
go trpcS.Accept(trpcL)
 
// 开始服务
m.Serve()

 

← Go语言IO编程
Next Post →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Related Posts

  • Linux网络编程
  • Linux网络知识集锦
  • libevent学习笔记
  • Gin学习笔记
  • Go语言数据库编程

Recent Posts

  • Investigating and Solving the Issue of Failed Certificate Request with ZeroSSL and Cert-Manager
  • A Comprehensive Study of Kotlin for Java Developers
  • 背诵营笔记
  • 利用LangChain和语言模型交互
  • 享学营笔记
ABOUT ME

汪震 | Alex Wong

江苏淮安人,现居北京。目前供职于腾讯云,专注容器方向。

GitHub:gmemcc

Git:git.gmem.cc

Email:gmemjunk@gmem.cc@me.com

ABOUT GMEM

绿色记忆是我的个人网站,域名gmem.cc中G是Green的简写,MEM是Memory的简写,CC则是我的小天使彩彩名字的简写。

我在这里记录自己的工作与生活,同时和大家分享一些编程方面的知识。

GMEM HISTORY
v2.00:微风
v1.03:单车旅行
v1.02:夏日版
v1.01:未完成
v0.10:彩虹天堂
v0.01:阳光海岸
MIRROR INFO
Meta
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Recent Posts
  • Investigating and Solving the Issue of Failed Certificate Request with ZeroSSL and Cert-Manager
    In this blog post, I will walk ...
  • A Comprehensive Study of Kotlin for Java Developers
    Introduction Purpose of the Study Understanding the Mo ...
  • 背诵营笔记
    Day 1 Find Your Greatness 原文 Greatness. It’s just ...
  • 利用LangChain和语言模型交互
    LangChain是什么 从名字上可以看出来,LangChain可以用来构建自然语言处理能力的链条。它是一个库 ...
  • 享学营笔记
    Unit 1 At home Lesson 1 In the ...
  • K8S集群跨云迁移
    要将K8S集群从一个云服务商迁移到另外一个,需要解决以下问题: 各种K8S资源的迁移 工作负载所挂载的数 ...
  • Terraform快速参考
    简介 Terraform用于实现基础设施即代码(infrastructure as code)—— 通过代码( ...
  • 草缸2021
    经过四个多月的努力,我的小小荷兰景到达极致了状态。

  • 编写Kubernetes风格的APIServer
    背景 前段时间接到一个需求做一个工具,工具将在K8S中运行。需求很适合用控制器模式实现,很自然的就基于kube ...
  • 记录一次KeyDB缓慢的定位过程
    环境说明 运行环境 这个问题出现在一套搭建在虚拟机上的Kubernetes 1.18集群上。集群有三个节点: ...
  • eBPF学习笔记
    简介 BPF,即Berkeley Packet Filter,是一个古老的网络封包过滤机制。它允许从用户空间注 ...
  • IPVS模式下ClusterIP泄露宿主机端口的问题
    问题 在一个启用了IPVS模式kube-proxy的K8S集群中,运行着一个Docker Registry服务 ...
  • 念爷爷
      今天是爷爷的头七,十二月七日、阴历十月廿三中午,老人家与世长辞。   九月初,回家看望刚动完手术的爸爸,发

  • 6 杨梅坑

  • liuhuashan
    深圳人才公园的网红景点 —— 流花山

  • 1 2020年10月拈花湾

  • 内核缺陷触发的NodePort服务63秒延迟问题
    现象 我们有一个新创建的TKE 1.3.0集群,使用基于Galaxy + Flannel(VXLAN模式)的容 ...
  • Galaxy学习笔记
    简介 Galaxy是TKEStack的一个网络组件,支持为TKE集群提供Overlay/Underlay容器网 ...
TOPLINKS
  • Zitahli's blue 91 people like this
  • 梦中的婚礼 64 people like this
  • 汪静好 61 people like this
  • 那年我一岁 36 people like this
  • 为了爱 28 people like this
  • 小绿彩 26 people like this
  • 彩虹姐姐的笑脸 24 people like this
  • 杨梅坑 6 people like this
  • 亚龙湾之旅 1 people like this
  • 汪昌博 people like this
  • 2013年11月香山 10 people like this
  • 2013年7月秦皇岛 6 people like this
  • 2013年6月蓟县盘山 5 people like this
  • 2013年2月梅花山 2 people like this
  • 2013年淮阴自贡迎春灯会 3 people like this
  • 2012年镇江金山游 1 people like this
  • 2012年徽杭古道 9 people like this
  • 2011年清明节后扬州行 1 people like this
  • 2008年十一云龙公园 5 people like this
  • 2008年之秋忆 7 people like this
  • 老照片 13 people like this
  • 火一样的六月 16 people like this
  • 发黄的相片 3 people like this
  • Cesium学习笔记 90 people like this
  • IntelliJ IDEA知识集锦 59 people like this
  • 基于Kurento搭建WebRTC服务器 38 people like this
  • Bazel学习笔记 37 people like this
  • PhoneGap学习笔记 32 people like this
  • NaCl学习笔记 32 people like this
  • 使用Oracle Java Mission Control监控JVM运行状态 29 people like this
  • Ceph学习笔记 27 people like this
  • 基于Calico的CNI 27 people like this
Tag Cloud
ActiveMQ AspectJ CDT Ceph Chrome CNI Command Cordova Coroutine CXF Cygwin DNS Docker eBPF Eclipse ExtJS F7 FAQ Groovy Hibernate HTTP IntelliJ IO编程 IPVS JacksonJSON JMS JSON JVM K8S kernel LB libvirt Linux知识 Linux编程 LOG Maven MinGW Mock Monitoring Multimedia MVC MySQL netfs Netty Nginx NIO Node.js NoSQL Oracle PDT PHP Redis RPC Scheduler ServiceMesh SNMP Spring SSL svn Tomcat TSDB Ubuntu WebGL WebRTC WebService WebSocket wxWidgets XDebug XML XPath XRM ZooKeeper 亚龙湾 单元测试 学习笔记 实时处理 并发编程 彩姐 性能剖析 性能调优 文本处理 新特性 架构模式 系统编程 网络编程 视频监控 设计模式 远程调试 配置文件 齐塔莉
Recent Comments
  • qg on Istio中的透明代理问题
  • heao on 基于本地gRPC的Go插件系统
  • 黄豆豆 on Ginkgo学习笔记
  • cloud on OpenStack学习笔记
  • 5dragoncon on Cilium学习笔记
  • Archeb on 重温iptables
  • C/C++编程:WebSocketpp(Linux + Clion + boostAsio) – 源码巴士 on 基于C/C++的WebSocket库
  • jerbin on eBPF学习笔记
  • point on Istio中的透明代理问题
  • G on Istio中的透明代理问题
  • 绿色记忆:Go语言单元测试和仿冒 on Ginkgo学习笔记
  • point on Istio中的透明代理问题
  • 【Maven】maven插件开发实战 – IT汇 on Maven插件开发
  • chenlx on eBPF学习笔记
  • Alex on eBPF学习笔记
  • CFC4N on eBPF学习笔记
  • 李运田 on 念爷爷
  • yongman on 记录一次KeyDB缓慢的定位过程
  • Alex on Istio中的透明代理问题
  • will on Istio中的透明代理问题
  • will on Istio中的透明代理问题
  • haolipeng on 基于本地gRPC的Go插件系统
  • 吴杰 on 基于C/C++的WebSocket库
©2005-2025 Gmem.cc | Powered by WordPress | 京ICP备18007345号-2