| 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 */ |