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

Comparing:
ircd-hybrid/src/send.c (file contents), Revision 32 by knight, Sun Oct 2 20:41:23 2005 UTC vs.
ircd-hybrid-7.2/src/send.c (file contents), Revision 189 by db, Sun Oct 23 21:35:38 2005 UTC

# 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 */
# Line 785 | Line 798 | sendto_channel_remote(struct Client *one
798    len = send_format(buffer, IRCD_BUFSIZE, pattern, args);
799    va_end(args);
800  
801 +  ++current_serial;
802 +
803    DLINK_FOREACH(ptr, chptr->members.head)
804    {
805      ms = ptr->data;
# Line 801 | Line 816 | sendto_channel_remote(struct Client *one
816          ((target_p->from->localClient->caps & caps) != caps) ||
817          ((target_p->from->localClient->caps & nocaps) != 0))
818        continue;
819 <
820 <    send_message(target_p, buffer, len);
819 >    if (target_p->from->serial != current_serial)
820 >    {
821 >      send_message(target_p, buffer, len);
822 >      target_p->from->serial = current_serial;
823 >    }
824    }
825   }
826  

Comparing:
ircd-hybrid/src/send.c (property svn:keywords), Revision 32 by knight, Sun Oct 2 20:41:23 2005 UTC vs.
ircd-hybrid-7.2/src/send.c (property svn:keywords), Revision 189 by db, Sun Oct 23 21:35:38 2005 UTC

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

Diff Legend

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