Hi, Alexey!

On Mar 26, Alexey Botchkov wrote:
> Hi, Sergei.
> 
> The Protocol::net_store_data is virtual in the embedded-server case
> because we need it implemented differently for Protocol_binary.

Ok, got it (finally), sorry.

I'm almost always use ctags when looking for definitions, but in this
case ctags didn't handle this correctly:

  #ifndef EMBEDDED_LIBRARY
  bool Protocol::net_store_data(const uchar *from, size_t length)
  #else
  bool Protocol_binary::net_store_data(const uchar *from, size_t length)
  #endif
  {
    ...

so I never noticed that Protocol_binary actually has its own
implementation of ::net_store_data() in the embedded case.

Still, another question, why did you have to rename net_store_data() to
net_store_data_cs() ? I've simply made it virtual and everything compiled
just fine - it has a different signature so the compiler can distinguish
them all right.

Regards,
Sergei

_______________________________________________
Mailing list: https://launchpad.net/~maria-developers
Post to     : maria-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to