libpurple/protocols/qq/qq_proxy.c

changeset 19097
9f5b720e73bc
parent 15884
4de1981757fc
child 19859
71d37b57eff2
equal deleted inserted replaced
19096:2a05fac82021 19097:9f5b720e73bc
491 ret = send(qd->fd, buf, len + 10, 0); 491 ret = send(qd->fd, buf, len + 10, 0);
492 } else { 492 } else {
493 errno = 0; 493 errno = 0;
494 ret = send(qd->fd, data, len, 0); 494 ret = send(qd->fd, data, len, 0);
495 } 495 }
496 if (ret == -1) { 496 if (ret == -1)
497 purple_connection_error(qd->gc, _("Socket send error")); 497 purple_connection_error(qd->gc, strerror(errno));
498 return ret;
499 } else if (errno == ECONNREFUSED) {
500 purple_connection_error(qd->gc, _("Connection refused"));
501 return ret;
502 }
503 498
504 return ret; 499 return ret;
505 } 500 }
506 501
507 /* read packet input with proxy support */ 502 /* read packet input with proxy support */

mercurial