// if an rpc comes in reply to server
if an rpc comes in reply to server
// if an rpc comes in reply to server
func (twoway *Bilateral) rpcBackHandler(item interface{}) error {
	data := item.(rpcServerBackData)
	if c, ok := twoway.connections[data.to]; ok {
		switch c.state {
		case stateConnected, stateCheck, stateServing:
			err := sendPacket(data.socket, data.to, "BACK", data.response)
			if nil != err {
				log.Errorf("rpcBackHandler: send: error: %v", err)
			}
		default:
		}
	}
	return nil
}
func ( twoway * Bilateral ) rpcBackHandler ( item interface { } ) error { data := item . ( rpcServerBackData ) if c , ok := twoway . connections [ data . to ] ; ok { switch c . state { case stateConnected , stateCheck , stateServing : err := sendPacket ( data . socket , data . to , " " , data . response ) if nil != err { log . Errorf ( " " , err ) } default : } } return nil }
if an rpc comes in reply to server
if an rpc comes in reply to server