Giter VIP home page Giter VIP logo

cwmp_grpc's Introduction

cwmp_grpc

gRPC server and client examples for CWMP demonstrate how to use .proto and .methods files which are generated by cwmp_xml_to_proto (https://github.com/jaemannyeh/cwmp_xml_to_proto).

You can use .methods files to implement gRPC server's service methods.

broadband forum (https://www.broadband-forum.org/) provides CWMP xml files.

tr-069-1-0-0-full.xml
tr-098-1-8-0-full.xml
tr-104-2-0-0-full.xml
tr-106-1-2-0-full.xml
tr-135-1-4-0-full.xml
tr-140-1-3-0-full.xml
tr-196-2-1-0-full.xml

cwmp_xml_to_proto generates .proto and .method files using CWMP xml files.

tr-069-1-0-0-full.proto     tr-069-1-0-0-full.methods
tr-098-1-8-0-full.proto     tr-098-1-8-0-full.methods
tr-104-2-0-0-full.proto     tr-104-2-0-0-full.methods
tr-106-1-2-0-full.proto     tr-106-1-2-0-full.methods
tr-135-1-4-0-full.proto     tr-135-1-4-0-full.methods
tr-140-1-3-0-full.proto     tr-140-1-3-0-full.methods
tr-196-2-1-0-full.proto     tr-196-2-1-0-full.methods

Have a look at the files, and use the terminal to build them:

$ make clean
$ make tr-140

Run Server:

$ ./tr-140_server &
[1] 3693
tr-140_server.dat: File not found. BOOSTRAP
D0826 15:37:12.685537848    3693 tr-140_server.cc:219]       Server listening on 0.0.0.0:50051

Run client:

$ ./tr-140_client 1
D0826 15:38:38.981401326    3699 tr-140_server.cc:78]        SetStorageService device_.enable 1 
D0826 15:38:38.981823385    3723 tr-140_client.cc:116]       uptime 86 alias  # A server-side streaming RPC
D0826 15:38:39.983058987    3723 tr-140_client.cc:116]       uptime 87 alias  # A server-side streaming RPC

Shutdown server:

$ ./tr-140_client 0
D0826 15:40:13.717173145    3700 tr-140_server.cc:78]        SetStorageService device_.enable 0 
[1]+  Done                    ./tr-140_server

jaemannyeh

cwmp_grpc's People

Contributors

jaemannyeh avatar

Stargazers

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