# net++ **Repository Path**: hellower114514/netpp ## Basic Information - **Project Name**: net++ - **Description**: 一个基于golang编写的c/c++网络库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-09-01 - **Last Updated**: 2025-02-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # *C++网络库 — net++* --- ## 简介 1. net++是一个**基于go语言**的**轻量级**C++网络库, 致力于将C++网络编程变得**简单、易用**。 2. net++**跨平台(正在完善)** ,不依赖某个特定平台的api。 3. 支持c/c++(建议使用 **c接口(netpp.h)** ,**cpp api (netpp.hpp)** 正在完善) --- ## 示例 **1. http get请求**: ```cpp #include #include "netpp.h" int main(){ int resp = HttpGetR(to_gostr("https://baidu.com")); GoString buf{nullptr, 0}; ReadFromHttpResponse(resp, &buf); std::cout << buf.p; return 0; } ```