* made *bstr things const
[citadel.git] / webcit / tcp_sockets.c
index a786c6cbea875915b96c05d616dfa1a6e2b5ecb4..6c9b34f3564732ca1df7ebf8b97ab20942682c8a 100644 (file)
@@ -252,6 +252,19 @@ void serv_puts(const char *string)
        serv_write("\n", 1);
 }
 
+/**
+ * \brief send line to server
+ * \param string the line to send to the citadel server
+ */
+void serv_putbuf(const StrBuf *string)
+{
+#ifdef SERV_TRACE
+       lprintf(9, "%3d<%s\n", WC->serv_sock, ChrPtr(string));
+#endif
+       serv_write(ChrPtr(string), StrLength(string));
+       serv_write("\n", 1);
+}
+
 
 /**
  * \brief convenience function to send stuff to the server