updates.
[silc.git] / lib / silcutil / silcsockconn.h
index d3a95c67e05b949511e0a4d64e7cad66d816d242..f8321ed1fc2da628c956dd73409948053a670434 100644 (file)
@@ -6,9 +6,9 @@
  *
  * COPYRIGHT
  *
- * Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
+ * Author: Pekka Riikonen <priikone@silnet.org>
  *
- * Copyright (C) 1997 - 2000 Pekka Riikonen
+ * Copyright (C) 1997 - 2001 Pekka Riikonen
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -207,6 +207,12 @@ struct SilcSocketConnectionStruct {
 
 /* Macros */
 
+/* Amount of bytes to be read from the socket connection at once. */
+#define SILC_SOCKET_READ_SIZE 16384
+
+/* Default socket buffer size. */
+#define SILC_SOCKET_BUF_SIZE 1024
+
 /* Generic manipulation of flags */
 #define SF_SET(x, f) (x)->flags |= (1L << (f))
 #define SF_UNSET(x, f) (x)->flags &= ~(1L << (f))
@@ -291,7 +297,7 @@ SilcSocketConnection silc_socket_dup(SilcSocketConnection sock);
  *    Reads data from the socket connection into the incoming data buffer.
  *    It reads as much as possible from the socket connection. This returns
  *    amount of bytes read or -1 on error or -2 on case where all of the
- *    data could not be read at once. Implementation of this funtion
+ *    data could not be read at once. Implementation of this function
  *    may be platform specific.
  *
  ***/
@@ -309,7 +315,7 @@ int silc_socket_read(SilcSocketConnection sock);
  *    data cannot be written at once, it must be written at later time. 
  *    The data is written from the data section of the buffer, not from head
  *    or tail section. This automatically pulls the data section towards end
- *    after writing the data. Implementation of this functions may be
+ *    after writing the data. Implementation of this function may be
  *    platform specific.
  *
  ***/