Giter Club home page Giter Club logo

simplerpc's Introduction

simpleRPC

这个是一个非常简单的RPC框架。一共有4个文件,main1.go、main2.go、rpc.go和rpc_test.go。
这四个文件中,首先应当启动main1.go 这个是服务器端。测试的话,可以使用go run main1.go rpc.go来启动。然后启动main2.go。这个是客户端程序。要执行测试程序的话,需要先打开main.go。

注意

main1.go和main2.go需要放在不同的文件夹里面。rpc_test.go需要和main2.go放在一起。 rpc.go里面的package名字我没有用其他的名字,就是main。这不是有什么特别的原因,就是因为懒。

simplerpc's People

Contributors

fkfk000 avatar

Watchers

 avatar  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.