func (sc *ServerCodec) ReadRequestBody(body interface{}) error { return bson.UnmarshalFromStream(sc.rwc, body) }
func (cc *ClientCodec) ReadResponseBody(body interface{}) error { return bson.UnmarshalFromStream(cc.rwc, body) }
func (sc *ServerCodec) ReadRequestHeader(r *rpc.Request) error { return bson.UnmarshalFromStream(sc.rwc, &RequestBson{r}) }
func (cc *ClientCodec) ReadResponseHeader(r *rpc.Response) error { return bson.UnmarshalFromStream(cc.rwc, &ResponseBson{r}) }