Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marinx/mcastrpc
Golang Multicast JSON RPC Server
https://github.com/marinx/mcastrpc
go golang multicast server
Last synced: 3 months ago
JSON representation
Golang Multicast JSON RPC Server
- Host: GitHub
- URL: https://github.com/marinx/mcastrpc
- Owner: MarinX
- License: mit
- Created: 2015-03-28T20:46:18.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-15T13:51:37.000Z (over 7 years ago)
- Last Synced: 2024-06-19T10:14:04.212Z (7 months ago)
- Topics: go, golang, multicast, server
- Language: Go
- Size: 3.91 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Multicast JSON RPC Server
# Description
Multicast JSON RPC server# Installation
go get github.com/MarinX/mcastrpc
# Notes
* Multicast cannot be used in any sort of cloud, or shared infrastructure environment
* Tested only on Linux
* Be sure to run client on other PC, because address on network cannot be same# Example
package mainimport (
"fmt"
"github.com/MarinX/mcastrpc"
)type Api struct {
}type Result struct {
Success bool
Message string
}func main() {
srv := mcastrpc.NewServer()
err := srv.Register(new(Api), "Api")
if err != nil {
fmt.Println(err)
return
}if err := srv.ListenAndServe("224.0.0.251", 1712); err != nil {
fmt.Println(err)
}}
func (t *Api) Say(r *string, w *Result) error {
*w = Result{
Success: true,
Message: "Hello," + *r,
}
return nil
}# TODO
* Create multicast client# License
This library is under the MIT License# Author
Marin Basic