View | Details | Raw Unified | Return to bug 2019
Collapse All | Expand All

(-)a/src/network/model/packet.cc (+8 lines)
 Lines 412-417    Link Here 
412
    }
412
    }
413
}
413
}
414
414
415
std::string
416
Packet::ToString() const
417
{
418
  std::ostringstream oss;
419
  Print (oss);
420
  return oss.str();
421
}
422
415
void 
423
void 
416
Packet::Print (std::ostream &os) const
424
Packet::Print (std::ostream &os) const
417
{
425
{
(-)a/src/network/model/packet.h (+9 lines)
 Lines 454-459    Link Here 
454
  void Print (std::ostream &os) const;
454
  void Print (std::ostream &os) const;
455
455
456
  /**
456
  /**
457
   * \brief Return a string representation of the packet
458
   *
459
   * An empty string is returned if you haven't called EnablePrinting ()
460
   *
461
   * \return String representation
462
   */
463
  std::string ToString (void) const;
464
465
  /**
457
   * \brief Returns an iterator which points to the first 'item'
466
   * \brief Returns an iterator which points to the first 'item'
458
   * stored in this buffer.
467
   * stored in this buffer.
459
   *
468
   *

Return to bug 2019