X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=net.c;h=9c300c744c11ddbec362eb02433a6a3d60db8163;hp=d32cc7eeb611279d936ef8cfd98dda644f06d799;hb=c59730ef3c559fd79784c55153410db592eebd68;hpb=ca059ef393a5ea00c3318314b3de5229f9fd7ea0;ds=sidebyside diff --git a/net.c b/net.c index d32cc7ee..9c300c74 100644 --- a/net.c +++ b/net.c @@ -689,38 +689,19 @@ struct in_addr extract_v4_addr(const struct sockaddr_storage *ss) return ia; } -/** - * Send a binary buffer. - * - * \param fd The file descriptor. - * \param buf The buffer to be sent. - * \param len The length of \a buf. - * - * Send out the buffer and try to resend the remaining part in case of short - * writes. - * - * \return Standard. - */ -int send_bin_buffer(int fd, const char *buf, size_t len) -{ - if (!len) - PARA_CRIT_LOG("len == 0\n"); - return write_all(fd, buf, len); -} - /** * Send a \p NULL-terminated buffer. * * \param fd The file descriptor. * \param buf The null-terminated buffer to be send. * - * This is equivalent to send_bin_buffer(fd, buf, strlen(buf)). + * This is equivalent to write_all(fd, buf, strlen(buf)). * * \return Standard. */ int send_buffer(int fd, const char *buf) { - return send_bin_buffer(fd, buf, strlen(buf)); + return write_all(fd, buf, strlen(buf)); } /**