aboutsummaryrefslogtreecommitdiffstats
path: root/apps/clients.h
diff options
context:
space:
mode:
authorjames <>2008-02-13 18:05:06 +0000
committerjames <>2008-02-13 18:05:06 +0000
commit7b7996c7bb4bd66f6262f4e721b6960d6b58b801 (patch)
tree9f5e12b05faf7fb66de0d20c05c0db4b804bb8b2 /apps/clients.h
parent9644f7cf7d6949303984a058b9b3694c92ac9be5 (diff)
downloadsympathy-7b7996c7bb4bd66f6262f4e721b6960d6b58b801.tar.gz
sympathy-7b7996c7bb4bd66f6262f4e721b6960d6b58b801.tar.bz2
sympathy-7b7996c7bb4bd66f6262f4e721b6960d6b58b801.zip
*** empty log message ***
Diffstat (limited to 'apps/clients.h')
-rw-r--r--apps/clients.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/apps/clients.h b/apps/clients.h
new file mode 100644
index 0000000..78ecdc3
--- /dev/null
+++ b/apps/clients.h
@@ -0,0 +1,43 @@
+/*
+ * clients.h:
+ *
+ * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
+ * All rights reserved.
+ *
+ */
+
+/*
+ * $Id$
+ */
+
+/*
+ * $Log$
+ * Revision 1.1 2008/02/13 18:05:06 james
+ * *** empty log message ***
+ *
+ */
+
+#ifndef __CLIENTS_H__
+#define __CLIENTS_H__
+
+typedef struct Client_struct {
+ struct Client_struct *next;
+
+ Socket *s;
+ int dead;
+} Client;
+
+typedef struct {
+ Client *head;
+ int n;
+} Clients;
+
+
+extern Clients *clients_new(void);
+extern void clients_pre_select (Clients *, fd_set *, fd_set *);
+extern void clients_post_select(Clients *,Context *, fd_set *, fd_set *);
+extern Client *clients_new_client(Clients *,Socket *,Context *);
+extern void clients_shutdown(Clients *);
+extern void clients_output (Clients *, void *, int);
+
+#endif /* __CLIENTS_H__ */