// rpc cast routine - no reply will be sent by remote
// to can be set to SendToAll to do a broadcast
rpc cast routine - no reply will be sent by remote
to can be set to SendToAll to do a broadcast
// rpc cast routine - no reply will be sent by remote // to can be set to SendToAll to do a broadcast
func (twoway *Bilateral) Cast(to []string, method string, args interface{}) error {
	if nil != to && 0 == len(to) {
		to = nil
	}
	select {
	case <-twoway.shutdownAll:
		return errors.New("RPC system shutting down")
	default:
	}
	id := nonce()
	twoway.rpcClientRequestChannel <- &rpcClientRequestData{
		id:         id,
		to:         to,
		timeout:    DEFAULT_CALL_TIMEOUT, 
		method:     method,
		args:       args,
		structType: nil,
		done:       nil,
		reply:      nil, 
		count:      0,   
	}
	return nil
}
func ( twoway * Bilateral ) Cast ( to [ ] string , method string , args interface { } ) error { if nil != to && 0 == len ( to ) { to = nil } select { case <- twoway . shutdownAll : return errors . New ( " " ) default : } id := nonce ( ) twoway . rpcClientRequestChannel <- & rpcClientRequestData { id : id , to : to , timeout : DEFAULT_CALL_TIMEOUT , method : method , args : args , structType : nil , done : nil , reply : nil , count : 0 , } return nil }
rpc cast routine - no reply will be sent by remote
to can be set to SendToAll to do a broadcast
rpc cast routine - no reply will be sent by remote to can be set to SendToAll to do a broadcast
// not used // added later // added later