]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - net.c
Remove send_bin_buffer().
[paraslash.git] / net.c
diff --git a/net.c b/net.c
index d32cc7eeb611279d936ef8cfd98dda644f06d799..9c300c744c11ddbec362eb02433a6a3d60db8163 100644 (file)
--- a/net.c
+++ b/net.c
@@ -689,38 +689,19 @@ struct in_addr extract_v4_addr(const struct sockaddr_storage *ss)
        return ia;
 }
 
        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.
  *
 /**
  * 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 Standard.
  */
 int send_buffer(int fd, const char *buf)
 {
-       return send_bin_buffer(fd, buf, strlen(buf));
+       return write_all(fd, buf, strlen(buf));
 }
 
 /**
 }
 
 /**