/[svn]/ircd-hybrid/src/send.c
ViewVC logotype

Diff of /ircd-hybrid/src/send.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 177 by adx, Tue Oct 4 16:09:51 2005 UTC revision 178 by adx, Sat Oct 22 10:02:43 2005 UTC
# Line 80  send_format(char *lsendbuf, int bufsize, Line 80  send_format(char *lsendbuf, int bufsize,
80  }  }
81    
82  /*  /*
83     * iosend_default - append a packet to the client's sendq.
84     */
85    void *
86    iosend_default(va_list args)
87    {
88      struct Client *to = va_arg(args, struct Client *);
89      int length = va_arg(args, int);
90      char *buf = va_arg(args, char *);
91    
92      dbuf_put(&to->localClient->buf_sendq, buf, length);
93      return NULL;
94    }
95    
96    /*
97   ** send_message   ** send_message
98   **      Internal utility which appends given buffer to the sockets   **      Internal utility which appends given buffer to the sockets
99   **      sendq.   **      sendq.
# Line 110  send_message(struct Client *to, char *bu Line 124  send_message(struct Client *to, char *bu
124      return;      return;
125    }    }
126    
127    dbuf_put(&to->localClient->buf_sendq, buf, len);    execute_callback(iosend_cb, to, len, buf);
128    
129    /*    /*
130     ** Update statistics. The following is slightly incorrect     ** Update statistics. The following is slightly incorrect
# Line 287  send_queued_write(struct Client *to) Line 301  send_queued_write(struct Client *to)
301          break;          break;
302        }        }
303    
       execute_callback(iosend_cb, to, retlen, first->data);  
304        dbuf_delete(&to->localClient->buf_sendq, retlen);        dbuf_delete(&to->localClient->buf_sendq, retlen);
305    
306        /* We have some data written .. update counters */        /* We have some data written .. update counters */

Legend:
Removed from v.177  
changed lines
  Added in v.178

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28