~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/net_serv.cc

  • Committer: patrick crews
  • Date: 2011-03-15 12:12:09 UTC
  • mfrom: (1099.4.216 drizzle)
  • Revision ID: gleebix@gmail.com-20110315121209-8g2tkf31w0rx9ter
Tags: 2011.03.12
Updated translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
{
98
98
  Vio *vio_tmp= new Vio(sock);
99
99
  if (vio_tmp == NULL)
 
100
  {
100
101
    return true;
 
102
  }
101
103
  else
102
104
    if (drizzleclient_net_init(net, vio_tmp, buffer_length))
103
105
    {
105
107
       * NET object.
106
108
       */
107
109
      if (vio_tmp && (net->vio != vio_tmp))
 
110
      {
108
111
        delete vio_tmp;
 
112
      }
109
113
      else
110
114
      {
111
115
        (void) shutdown(sock, SHUT_RDWR);
126
130
 
127
131
void drizzleclient_net_close(NET *net)
128
132
{
129
 
  if (net->vio != NULL)
130
 
  {
131
 
    delete net->vio;
132
 
    net->vio= 0;
133
 
  }
 
133
  drizzled::safe_delete(net->vio);
134
134
}
135
135
 
136
136
bool drizzleclient_net_peer_addr(NET *net, char *buf, uint16_t *port, size_t buflen)
857
857
        }
858
858
      }
859
859
      else
 
860
      {
860
861
        complen= packet_len;
 
862
      }
861
863
 
862
864
    }
863
865
    buf_length+= complen;