Tornado 6.1 Documentation
client/server implementation • Asynchronous networking tornado.io loop — Main event loop tornado.iostream — Convenient wrappers for non-blocking sockets ☐ tornado.netutil — Miscellaneous network utilities (HTTPServer and AsyncHTTPClient). - An asynchronous networking library including the classes IOLoop and IOStream, which serve as the building blocks for the HTTP components and can also be used to implement other user object may be any type of the application’s choosing. RequestHandler.detach() → tornado.iostream.IOStream[source] Take control of the underlying stream. Returns the underlying I0Stream object and stops0 码力 | 931 页 | 708.03 KB | 2 年前3
Tornado 4.5 Documentation
client/server implementation ## • Asynchronous networking tornado.io loop — Main event loop ☐ tornado.iostream — Convenient wrappers for non-blocking sockets ☐ tornado.netutil — Miscellaneous network utilities (HTTPServer and AsyncHTTPClient). - An asynchronous networking library including the classes IOLoop and IOStream, which serve as the building blocks for the HTTP components and can also be used to implement other events ■ Callbacks and timeouts ■ Debugging and error handling ■ Methods for subclasses • tornado.iostream — Convenient wrappers for non-blocking sockets ○ Base class ■ Main interface ■ Methods for subclasses0 码力 | 333 页 | 322.34 KB | 2 年前3
Why is my Build so SlowLevel ## I ncludes #include <iostream> int main() { std::cout << "Hello, world!" << std::endl; }iostream> ## I ncludes ## #include <iostream> ~69,000 Lines! int main() { { std::cout << "Hello, world!" << std::endl; }iostream> ## I ncludes clang main.cpp -stdlib=libc++[-E}&> prep_main.cpp $ du -bh main.cpp 82 main.cpp $ du -bh prep_main <> struct Sum<0> { static const int value = 0; }; ## Templates #include <iostream> templatestruct Sum { static const int value = N + Sum ::value; }; 0 码力 | 71 页 | 3.96 MB | 1 年前3
Back to Basics: Pointers& go.) 1 // @file initialize.cpp 2 // g++ -std=c++17 initialize.cpp -o prog 3 #include <iostream> 5 int main() { int x = 7; int* px = &x; std::cout << "x is: " << << std::endl; std::cout << *px is: " << *px << std::endl; return 0;iostream> ## But truth be told, it was probably in graduate school ##### ... that I really understood the example) 1 // @file initialize.cpp 2 // g++ -std=c++17 initialize.cpp -o prog 3 #include <iostream>iostream> ## What is a Pointer? (2/8) - A pointer is a variable that stores the memory address of a0 码力 | 152 页 | 5.61 MB | 1 年前3
Modern C++ Tutorial: C++11/14/17/20 On the Flyfoo.c int add(int x, int y) { return x + y; } // 1.1.cpp #include "foo.h" #include <iostream> #includeint main() { [out = std::ref(std::cout << "Result from C code: c OBJECTS_C = foo.o SOURCE_CXX = 1.1.cpp TARGET = 1.1 LDFLAGS_COMMON = -std=c++2a iostream> all: $(C) -c $(SOURCE_C) $(CXX) $(SOURCE_CXX) $(OBJECTS_C) $(LDFLAGS_COMMON) -o $(TARGET) rm equally or unequally with them. You can try to compile the following code using clang++: #include <iostream> #includevoid foo(char *); void foo(int); int main() { if (std::is_same 0 码力 | 92 页 | 1.79 MB | 2 年前3
C++高性能并行编程与优化 - 课件 - 06 TBB 开启的并行编程之旅-DCMAKE_TOOLCHAIN_FILE="%CD%/vcpkg/scripts/buildsystems/vcpkg.cmake" ## 上一课的案例代码:基于标准库 #include <iostream> #include#include iostream> ## 基于 TBB 的版本:任务组 - 用一个任务组 tbb::task_group 启动多个任务,一个负责下载,一个负责和用户交互。并在主线程中等待该任务组里的任务全部执行完毕。 - << "Download complete: " << file << std::endl; 12 } ## 更好的例子 #include <iostream> #includevoid download(std::string file) { for (int i = 0; i < std::cout << "Child thread exited!" << std::endl; return 0; } #include int main() { std::string s = "Hello 0 码力 | 116 页 | 15.85 MB | 2 年前3
Tornado 6.5 Documentation(HTTPServer and AsyncHTTPClient). • An asynchronous networking library including the classes IOLoop and IOStream, which serve as the building blocks for the HTTP components and can also be used to implement other type of the application’s choosing. RequestHandler.detach() → IOStream Take control of the underlying stream. Returns the underlying IOStream object and stops all further HTTP processing. Intended for implementing true, decode incoming Content-Encoding: gzip class tornado.http1connection.HTTP1Connection(stream: IOStream, is_client: bool, params: HTTP1ConnectionParameters | None = None, context: object | None = None)0 码力 | 272 页 | 1.12 MB | 10 月前3
现代C++ 教程:高速上手C++11/14/17/20foo.c int add(int x, int y) { return x + y; } // 1.1.cpp #include "foo.h" #include <iostream> #includeint main() { [out = std::ref(std::cout << "Result from C code: 语言的代码: gcc -c foo.c 编译出 foo.o 文件,再使用 clang++ 将 C++ 代码和 .o 文件链接起来(或者都编译为 .o 再统一链接): iostream> clang++ 1.1.cpp foo.o -std=c++2a -o 1.1 当然,你可以使用 Makefile 来编译上面的代码: C = gcc CXX = clang++ SOURCE_C nullptr 的类型为 nullptr_t,能够隐式的转换为任何指针或成员指针的类型,也能和他们进行相等或者不等的比较。 你可以尝试使用 clang++ 编译下面的代码: #include <iostream> #includevoid foo(char *); void foo(int); int main() { if (std::is_same 0 码力 | 83 页 | 2.42 MB | 2 年前3
Back to Basics Almost Always Vectorall (we get a lot of coursework!), so I'll respond here instead: #include#include <iostream> #include  ## more (public member function) ## The Basics ## Creating a std::vector #include <iostream> #includeint a[] = {0, 1, 2, 3, 4}; std::vector iostream>c = {0, 1, 2, 3, 4}; auto main() << "Vector size: " << c.size() << std::endl; return 0; } int main() { std::vector wa_years; // empty vector of years 0 码力 | 62 页 | 4.86 MB | 1 年前3
C++高性能并行编程与优化 - 课件 - 13 C++ STL 容器全解之 vector标准库五大件:容器(container) 101.cpp #include#include ## C++ 标准库五大件:迭代器(iterator) 101.cpp #include#include #include <iostream> int main() { std::vector a = {1, 4, 2, 8, 5, 7}; auto n = std::count_if(a.begin() return 0; } iostream>#include ## C++ 标准库五大件:算法(algorithm) 101.cpp #include#include #include <iostream> int main() { std::vector return 0; } iostream>#include #include #include <iostream> int main() { std::vector 0 码力 | 90 页 | 4.93 MB | 2 年前3共 264 条- 1
- 2
- 3
- 4
- 5
- 6
- 27
相关搜索词
Tornadoasynchronous networkingevent loopIOStreamcoroutinetornado.webtornado.httpservertornado.iostreamtornado.concurrenttornado.websocketPerfettoCMakeninjabuildChrome Event Tracing Format JSON指针内存地址动态数组函数指针智能指针Modern C++C++11/14/17/20nullptrconstexprstructured bindingsIntel TBB并行编程流水线并行任务并行数据并行Tornado框架异步HTTP客户端WebSocket协议模块改进新功能C++11C++14C++17C++20现代C++结构化绑定Lambda表达式std::vector缓存友好性随机访问动态内存分配成员函数vector容器STL内存分配插入操作













