Exemplo n.º 1
0
 void checkTopicValues(Topic top)
 {
     if (top.GetDomainAddress().Equals(""))
     {
         top.SetDomainAddress(domainAddress);
     }
     if (top.GetLocalInterface().Equals(""))
     {
         top.SetLocalInterface(localInterface);
     }
     if (top.GetTimeToLive() < 0)
     {
         top.SetTimeToLive(timeToLive);
     }
     if (top.GetInSocketBufferSize() < 0)
     {
         top.SetInSocketBufferSize(inSocketBufferSize);
     }
     if (top.GetOutSocketBufferSize() < 0)
     {
         top.SetOutSocketBufferSize(outSocketBufferSize);
     }
     top.SetOptNonVirt(optNonVirt);
 }