Configurable lookup for network listener creation.
[silc.git] / lib / silcutil / silcfdstream.c
index db9bd9d724185d0396b454b5857d301eb7790c84..a5ce7b8747189c6f4dfcdcec0cc01b9f2b03eaca 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2005 Pekka Riikonen
+  Copyright (C) 2005 - 2006 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
@@ -19,6 +19,8 @@
 
 #include "silc.h"
 
+/************************** Types and definitions ***************************/
+
 #define SILC_IS_FD_STREAM(s) (s->ops == &silc_fd_stream_ops)
 
 const SilcStreamOps silc_fd_stream_ops;
@@ -34,6 +36,9 @@ typedef struct {
   int error;
 } *SilcFDStream;
 
+
+/************************ Static utility functions **************************/
+
 /* The IO process callback that calls the notifier callback to upper layer. */
 
 SILC_TASK_CALLBACK(silc_fd_stream_io)
@@ -57,6 +62,9 @@ SILC_TASK_CALLBACK(silc_fd_stream_io)
   }
 }
 
+
+/****************************** Public API **********************************/
+
 /* Create file descriptor stream */
 
 SilcStream silc_fd_stream_create(int fd)