Files
cgrates/cmd/test/test.go
Radu Ioan Fericean 3d1fb32ad8 restruturing
2012-01-27 16:31:54 +02:00

20 lines
252 B
Go

package main
import (
"net/rpc"
"fmt"
)
func main(){
client, _ := rpc.DialHTTPPath("tcp", "localhost:2000", "/rpc")
var reply string
i:= 0
for ; i < 5 * 10e4; i++ {
client.Call("Responder.Get", "test", &reply)
}
fmt.Println(i, reply)
}