1293
1287
int sock= socket(t_res->ai_family, t_res->ai_socktype,
1295
1289
if (sock == SOCKET_ERROR)
1297
set_drizzle_extended_error(drizzle, CR_IPSOCK_ERROR, unknown_sqlstate,
1303
1292
net->vio= vio_new(sock, VIO_TYPE_TCPIP, VIO_BUFFERED_READ);
1312
1299
if (connect_with_timeout(sock, t_res->ai_addr, t_res->ai_addrlen, drizzle->options.connect_timeout))
1314
set_drizzle_extended_error(drizzle, CR_CONN_HOST_ERROR, unknown_sqlstate,