GithubHelp home page GithubHelp logo

network's Introduction

TCP 部分

如果你的 Ubuntu 不能正常使用 gRPC 的话,可以试试 Docker pull 下来一个 Arch Linux.

apt install docker docker.io
gpasswd -a 你的用户名 docker
  • apt 安装docker 并运行一个 archlinux 实例
docker pull archlinux 
docker run -it --net=host --name=arch_linux archlinux /bin/bash 
  • docker exec 启动容器中的一个程序 (注意在宿主系统中,不是在容器中)
docker start arch_linux
docker exec -it arch_linux /bin/bash
  • docker 给你提供了一个 Arch Linux 的环境
// 更换镜像源
echo 'Server = https://mirrors.bfsu.edu.cn/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
# Arch 的滚包
pacman -Syyu
# 安装本lab的一些包
pacman -S grpc cmake gcc make pkgconfig
  • 使用 cmake
cd Network
mkdir build
cmake ..
make -j16
# 在build下将会生成两个client.out 和 server.out

同时你也可以在 vscode 中下载 docker 插件.

在你的插件左侧一栏中会有你本机的正在运行的容器。可以右键 attach 进去。在 vscode 里开发。

LICENSE

本项目采用知识共享署名-相同方式共享 4.0 国际许可协议进行许可. 贡献本仓库视为同意贡献内容基于上述协议授权.

知识共享许可协议

network's People

Contributors

tiny-sky avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.