home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pc3270sa.zip / apps / winaping / pinginfo.cpp < prev    next >
Text File  |  2002-02-28  |  1KB  |  39 lines

  1. #include "stdafx.h"
  2. #include "pinginfo.h"
  3.  
  4. PingInfo::PingInfo() :
  5.  destination(_T("")), tpName(_T("APINGD")), mode(_T("#INTER")),
  6.  consecutivePackets(1), iterations(2), packetSize(100),
  7.  userID(_T("")), password(_T("")),
  8.  echo(TRUE), security(FALSE), verify(FALSE)
  9. {
  10. }
  11.  
  12. PingInfo::PingInfo(PingInfo const &pi) :
  13.  destination(pi.destination), tpName(pi.tpName), mode(pi.mode),
  14.  consecutivePackets(pi.consecutivePackets), iterations(pi.iterations),
  15.  packetSize(pi.packetSize),
  16.  userID(pi.userID), password(pi.password),
  17.  echo(pi.echo), security(pi.security), verify(pi.verify)
  18. {
  19. }
  20.  
  21. PingInfo& PingInfo::operator=(PingInfo const &pi)
  22. {
  23.   if (this != &pi) {
  24.     destination = pi.destination;
  25.     tpName = pi.tpName;
  26.     mode = pi.mode;
  27.     consecutivePackets = pi.consecutivePackets;
  28.     iterations = pi.iterations;
  29.     packetSize = pi.packetSize;
  30.     userID = pi.userID;
  31.     password = pi.password;
  32.     echo = pi.echo;
  33.     security = pi.security;
  34.     verify = pi.verify;
  35.   }
  36.  
  37.   return *this;
  38. }
  39.