func NewServerCodec(conn io.ReadWriteCloser, enc filemarshal.Encoder, dec filemarshal.Decoder) rpc.ServerCodec { return &serverCodec{conn, filemarshal.NewEncoder(enc), filemarshal.NewDecoder(dec)} }
func NewClientCodec(conn io.ReadWriteCloser, enc filemarshal.Encoder, dec filemarshal.Decoder) rpc.ClientCodec { return &clientCodec{conn, filemarshal.NewEncoder(enc), filemarshal.NewDecoder(dec)} }