~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/net_serv.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-08 16:50:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2396.
  • Revision ID: olafvdspek@gmail.com-20110808165037-i20wtp4udmkmmcax
Use data_ref

Show diffs side-by-side

added added

removed removed

Lines of Context:
751
751
  return drizzleclient_net_write(this, data, size);
752
752
}
753
753
 
754
 
bool NET::write_command(unsigned char command,
755
 
  const unsigned char *header, size_t head_len,
756
 
  const unsigned char *packet, size_t len)
 
754
bool NET::write_command(unsigned char command, data_ref header, data_ref body)
757
755
{
758
 
  return drizzleclient_net_write_command(this, command, header, head_len, packet, len);
 
756
  return drizzleclient_net_write_command(this, command, header.data(), header.size(), body.data(), body.size());
759
757
}
760
758
 
761
759
uint32_t NET::read()