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