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

Diff of /ircd-hybrid-7.2/src/packet.c

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

revision 34 by lusky, Sun Oct 2 21:05:51 2005 UTC revision 163 by adx, Thu Oct 20 21:09:02 2005 UTC
# Line 166  parse_client_queued(struct Client *clien Line 166  parse_client_queued(struct Client *clien
166        client_dopacket(client_p, readBuf, dolen);        client_dopacket(client_p, readBuf, dolen);
167      }      }
168    }    }
169    else if(IsClient(client_p))    else if (IsClient(client_p))
170    {    {
171      if (ConfigFileEntry.no_oper_flood && (IsOper(client_p) || IsCanFlood(client_p)))      if (ConfigFileEntry.no_oper_flood && (IsOper(client_p) || IsCanFlood(client_p)))
172      {      {
# Line 390  nodata: Line 390  nodata:
390  }  }
391    
392  /*  /*
393     * iorecv_default - append a packet to the recvq dbuf
394     */
395    void *
396    iorecv_default(va_list args)
397    {
398      struct Client *client_p = va_arg(args, struct Client *);
399      int length = va_arg(args, int);
400      char *buf = va_arg(args, char *);
401    
402      dbuf_put(&client_p->localClient->buf_recvq, buf, length);
403      return NULL;
404    }
405    
406    /*
407   * read_packet - Read a 'packet' of data from a connection and process it.   * read_packet - Read a 'packet' of data from a connection and process it.
408   */   */
409  void  void
# Line 461  read_packet(fde_t *fd, void *data) Line 475  read_packet(fde_t *fd, void *data)
475        client_p->since = CurrentTime;        client_p->since = CurrentTime;
476      ClearPingSent(client_p);      ClearPingSent(client_p);
477    
     dbuf_put(&client_p->localClient->buf_recvq, readBuf, length);  
   
478      /* Attempt to parse what we have */      /* Attempt to parse what we have */
479      parse_client_queued(client_p);      parse_client_queued(client_p);
480    

Legend:
Removed from v.34  
changed lines
  Added in v.163

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