]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - send.h
dccp_recv.c: Reformat comment.
[paraslash.git] / send.h
diff --git a/send.h b/send.h
index 8b4317e3850d79b611d147d71ba0101a6e72fadf..3436bcea65371979152cb718bb8beb5d4cb9fda5 100644 (file)
--- a/send.h
+++ b/send.h
@@ -1,9 +1,13 @@
-/** \file send.h sender-related defines and structures */
-/** the sender subcommands */
-enum {SENDER_ADD, SENDER_DELETE, SENDER_ALLOW, SENDER_DENY, SENDER_ON, SENDER_OFF};
+/*
+ * Copyright (C) 2005-2008 Andre Noll <maan@systemlinux.org>
+ *
+ * Licensed under the GPL v2. For licencing details see COPYING.
+ */
 
-/** the number of sender subcommands */
-#define NUM_SENDER_CMDS (SENDER_OFF + 1)
+/** \file send.h Sender-related defines and structures. */
+
+/** The sender subcommands. */
+enum {SENDER_ADD, SENDER_DELETE, SENDER_ALLOW, SENDER_DENY, SENDER_ON, SENDER_OFF, NUM_SENDER_CMDS};
 
 /**
  * describes one supported sender of para_server
@@ -21,8 +25,6 @@ struct sender {
  * this sending facility, for example it could open a tcp port.
  */
        void (*init)(struct sender *s);
-/** \p SENDER_ON or \p SENDER_OFF */
-       int status;
 /**
  * return the help text of this sender
  *
@@ -84,27 +86,3 @@ struct sender {
        int (*client_cmds[NUM_SENDER_CMDS])(struct sender_command_data*);
 };
 
-/**
- * check a file descriptor for writability
- *
- * \param fd the file descriptor
- *
- * \return positive if fd is ready for writing, zero if it isn't, negative if
- * an error occurred.
- */
-
-static inline int write_ok(int fd)
-{
-       struct timeval tv = {0, 0};
-       fd_set wfds;
-       int ret;
-again:
-       FD_ZERO(&wfds);
-       FD_SET(fd, &wfds);
-       tv.tv_sec = 0;
-       tv.tv_usec = 0;
-       ret = select(fd + 1, NULL, &wfds, NULL, &tv);
-       if (ret < 0 && errno == EINTR)
-               goto again;
-       return ret;
-}