~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/net_serv.cc

  • Committer: Mark Atwood
  • Date: 2011-08-12 04:08:33 UTC
  • mfrom: (2385.2.17 refactor5)
  • Revision ID: me@mark.atwood.name-20110812040833-u6j85nc6ahuc0dtz
mergeĀ lp:~olafvdspek/drizzle/refactor5

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()