C语言的SPDY开发包 spdylay

码农软件 · 软件分类 · SPDY开发包 · 2019-03-06 21:28:54

软件介绍

spdylay 是 C 语言实现对 SPDY v2/3 协议支持的库

示例代码:

#include <iostream>

#include "spdy.h"

int main()
{
  spdy server;
  if(!server.listen("localhost", 8080, "server.key", "server.crt",
                    [](request& req, response& res) {
                      res.set_status(200);
                      res.set_header("content-type", "text/plain");
                      res.end("C++ FTW\n");
                    }))
    return EXIT_FAILURE;

  std::cout << "Server running at http://localhost:8080/" << std::endl;
  return reactor::run(server);
}

本文地址:https://www.codercto.com/soft/d/783.html

Pragmatic Thinking and Learning

Pragmatic Thinking and Learning

Andy Hunt / The Pragmatic Bookshelf / 2008 / USD 34.95

In this title: together we'll journey together through bits of cognitive and neuroscience, learning and behavioral theory; you'll discover some surprising aspects of how our brains work; and, see how ......一起来看看 《Pragmatic Thinking and Learning》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

随机密码生成器
随机密码生成器

多种字符组合密码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码