rpc_objects.go 196 B

12345678910111213
  1. // rpc_objects.go
  2. package rpc_objects
  3. import "net"
  4. type Args struct {
  5. N, M int
  6. }
  7. func (t *Args) Multiply(args *Args, reply *int) net.Error {
  8. *reply = args.N * args.M
  9. return nil
  10. }