Esempio n. 1
0
 internal static StaticRouteOption Read(System.IO.Stream stream)
 {
     IPAddress[] addresses    = IPRangeOption.Read(stream);
     IPAddress[] destinations = new IPAddress[addresses.Length / 2];
     IPAddress[] routers      = new IPAddress[addresses.Length / 2];
     for (int i = 0; i < addresses.Length; i++)
     {
         if (i % 2 == 0)
         {
             destinations[i / 2] = addresses[i];
         }
         else
         {
             routers[(i - 1) / 2] = addresses[i];
         }
     }
     return(new StaticRouteOption(destinations, routers));
 }
Esempio n. 2
0
 internal static RouterOption Read(System.IO.Stream stream)
 {
     return(new RouterOption(IPRangeOption.Read(stream)));
 }
 internal static NetbiosOverTcpIpNameServerOption Read(System.IO.Stream stream)
 {
     return(new NetbiosOverTcpIpNameServerOption(IPRangeOption.Read(stream)));
 }
Esempio n. 4
0
 internal static ImpressServerOption Read(System.IO.Stream stream)
 {
     return(new ImpressServerOption(IPRangeOption.Read(stream)));
 }
 internal static XWindowSystemFontServerOption Read(System.IO.Stream stream)
 {
     return(new XWindowSystemFontServerOption(IPRangeOption.Read(stream)));
 }
 internal static NetworkTimeProtocolServersOption Read(System.IO.Stream stream)
 {
     return(new NetworkTimeProtocolServersOption(IPRangeOption.Read(stream)));
 }
Esempio n. 7
0
 internal static CookieServerOption Read(System.IO.Stream stream)
 {
     return(new CookieServerOption(IPRangeOption.Read(stream)));
 }
Esempio n. 8
0
 internal static NetworkInformationServersOption Read(System.IO.Stream stream)
 {
     return(new NetworkInformationServersOption(IPRangeOption.Read(stream)));
 }
Esempio n. 9
0
 internal static NetbiosOverTcpIpDatagramDistributionServerOption Read(System.IO.Stream stream)
 {
     return(new NetbiosOverTcpIpDatagramDistributionServerOption(IPRangeOption.Read(stream)));
 }
 internal static ResourceLocationServerOption Read(System.IO.Stream stream)
 {
     return(new ResourceLocationServerOption(IPRangeOption.Read(stream)));
 }
 internal static DomainNameServerOption Read(System.IO.Stream stream)
 {
     return(new DomainNameServerOption(IPRangeOption.Read(stream)));
 }
Esempio n. 12
0
 internal static PolicyFilterOption Read(System.IO.Stream stream)
 {
     return(new PolicyFilterOption(IPRangeOption.Read(stream)));
 }
 internal static XWindowSystemDisplayManagerOption Read(System.IO.Stream stream)
 {
     return(new XWindowSystemDisplayManagerOption(IPRangeOption.Read(stream)));
 }