ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/send.c
(Generate patch)

Comparing:
ircd-hybrid/src/send.c (file contents), Revision 30 by adx, Sun Oct 2 20:03:27 2005 UTC vs.
ircd-hybrid-7.2/src/send.c (file contents), Revision 163 by adx, Thu Oct 20 21:09:02 2005 UTC

# Line 19 | Line 19
19   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
20   *  USA
21   *
22 < *  $Id: send.c,v 7.307 2005/10/02 12:45:07 adx Exp $
22 > *  $Id$
23   */
24  
25   #include "stdinc.h"
# Line 91 | Line 91 | send_format(char *lsendbuf, int bufsize,
91   }
92  
93   /*
94 + * iosend_default - append a packet to the client's sendq.
95 + */
96 + void *
97 + iosend_default(va_list args)
98 + {
99 +  struct Client *to = va_arg(args, struct Client *);
100 +  int length = va_arg(args, int);
101 +  char *buf = va_arg(args, char *);
102 +
103 +  dbuf_put(&to->localClient->buf_sendq, buf, length);
104 +  return NULL;
105 + }
106 +
107 + /*
108   ** send_message
109   **      Internal utility which appends given buffer to the sockets
110   **      sendq.
# Line 121 | Line 135 | send_message(struct Client *to, char *bu
135      return;
136    }
137  
138 <  dbuf_put(&to->localClient->buf_sendq, buf, len);
138 >  execute_callback(iosend_cb, to, len, buf);
139  
140    /*
141     ** Update statistics. The following is slightly incorrect
# Line 298 | Line 312 | send_queued_write(struct Client *to)
312          break;
313        }
314  
301      execute_callback(iosend_cb, to, retlen, first->data);
315        dbuf_delete(&to->localClient->buf_sendq, retlen);
316  
317        /* We have some data written .. update counters */

Comparing:
ircd-hybrid/src/send.c (property svn:keywords), Revision 30 by adx, Sun Oct 2 20:03:27 2005 UTC vs.
ircd-hybrid-7.2/src/send.c (property svn:keywords), Revision 163 by adx, Thu Oct 20 21:09:02 2005 UTC

# Line 1 | Line 1
1 < "Id Revision"
1 > Id Revision

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)