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

Comparing:
ircd-hybrid/src/packet.c (file contents), Revision 33 by knight, Sun Oct 2 20:50:00 2005 UTC vs.
ircd-hybrid-7.2/src/packet.c (file contents), Revision 428 by michael, Sat Feb 11 12:21:51 2006 UTC

# Line 166 | Line 166 | parse_client_queued(struct Client *clien
166        client_dopacket(client_p, readBuf, dolen);
167      }
168    }
169 <  else if(IsClient(client_p))
169 >  else if (IsClient(client_p))
170    {
171      if (ConfigFileEntry.no_oper_flood && (IsOper(client_p) || IsCanFlood(client_p)))
172      {
# Line 390 | 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.
408   */
409   void
# Line 426 | Line 440 | read_packet(fde_t *fd, void *data)
440              errno = EWOULDBLOCK;
441            case SSL_ERROR_SYSCALL:
442              break;
443 +          case SSL_ERROR_SSL:
444 +            if (errno == EAGAIN)
445 +              break;
446            default:
447              length = errno = 0;
448          }
# Line 461 | Line 478 | read_packet(fde_t *fd, void *data)
478        client_p->since = CurrentTime;
479      ClearPingSent(client_p);
480  
464    dbuf_put(&client_p->localClient->buf_recvq, readBuf, length);
465
481      /* Attempt to parse what we have */
482      parse_client_queued(client_p);
483  

Diff Legend

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