/[projects]/dao/DaoMqPump2/DaoMqPump2/Transport.cs
ViewVC logotype

Diff of /dao/DaoMqPump2/DaoMqPump2/Transport.cs

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

revision 2084 by torben, Tue Nov 26 19:22:50 2013 UTC revision 2085 by torben, Wed Nov 27 09:26:12 2013 UTC
# Line 460  namespace DaoMqPump2 Line 460  namespace DaoMqPump2
460          private bool validateSalt2Header(string salt2String)          private bool validateSalt2Header(string salt2String)
461          {          {
462              int result;              int result;
463                long result_long;
464    
465              string afsender = salt2String.Substring(0, 5);              string afsender = salt2String.Substring(0, 5);
466              string modtager = salt2String.Substring(5, 5);              string modtager = salt2String.Substring(5, 5);
# Line 474  namespace DaoMqPump2 Line 475  namespace DaoMqPump2
475              string transaktionsLaengde = salt2String.Substring(59, 5);              string transaktionsLaengde = salt2String.Substring(59, 5);
476              string prioritet = salt2String.Substring(64, 1);              string prioritet = salt2String.Substring(64, 1);
477    
478    
479                
480              if (int.TryParse(standardVersion.Trim(), out result) == false) // standardVersion _skal_ være en int              if (int.TryParse(standardVersion.Trim(), out result) == false) // standardVersion _skal_ være en int
481              {              {
482                  return false;                  return false;
# Line 484  namespace DaoMqPump2 Line 487  namespace DaoMqPump2
487                  return false;                  return false;
488              }              }
489    
490              if (int.TryParse(afsenderTidsstempel.Trim(), out result) == false) // afsenderTidsstempel _skal_ være en int              if (long.TryParse(afsenderTidsstempel.Trim(), out result_long) == false) // afsenderTidsstempel _skal_ være en long
491              {              {
492                  return false;                  return false;
493              }              }

Legend:
Removed from v.2084  
changed lines
  Added in v.2085

  ViewVC Help
Powered by ViewVC 1.1.20