コード例 #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));
 }
コード例 #2
0
ファイル: RouterOption.cs プロジェクト: devrelm/Zeroconf.NET
 internal static RouterOption Read(System.IO.Stream stream)
 {
     return(new RouterOption(IPRangeOption.Read(stream)));
 }
コード例 #3
0
 internal static NetbiosOverTcpIpNameServerOption Read(System.IO.Stream stream)
 {
     return(new NetbiosOverTcpIpNameServerOption(IPRangeOption.Read(stream)));
 }
コード例 #4
0
 internal static ImpressServerOption Read(System.IO.Stream stream)
 {
     return(new ImpressServerOption(IPRangeOption.Read(stream)));
 }
コード例 #5
0
 internal static XWindowSystemFontServerOption Read(System.IO.Stream stream)
 {
     return(new XWindowSystemFontServerOption(IPRangeOption.Read(stream)));
 }
コード例 #6
0
 internal static NetworkTimeProtocolServersOption Read(System.IO.Stream stream)
 {
     return(new NetworkTimeProtocolServersOption(IPRangeOption.Read(stream)));
 }
コード例 #7
0
 internal static CookieServerOption Read(System.IO.Stream stream)
 {
     return(new CookieServerOption(IPRangeOption.Read(stream)));
 }
コード例 #8
0
 internal static NetworkInformationServersOption Read(System.IO.Stream stream)
 {
     return(new NetworkInformationServersOption(IPRangeOption.Read(stream)));
 }
コード例 #9
0
 internal static NetbiosOverTcpIpDatagramDistributionServerOption Read(System.IO.Stream stream)
 {
     return(new NetbiosOverTcpIpDatagramDistributionServerOption(IPRangeOption.Read(stream)));
 }
コード例 #10
0
 internal static ResourceLocationServerOption Read(System.IO.Stream stream)
 {
     return(new ResourceLocationServerOption(IPRangeOption.Read(stream)));
 }
コード例 #11
0
 internal static DomainNameServerOption Read(System.IO.Stream stream)
 {
     return(new DomainNameServerOption(IPRangeOption.Read(stream)));
 }
コード例 #12
0
 internal static PolicyFilterOption Read(System.IO.Stream stream)
 {
     return(new PolicyFilterOption(IPRangeOption.Read(stream)));
 }
コード例 #13
0
 internal static XWindowSystemDisplayManagerOption Read(System.IO.Stream stream)
 {
     return(new XWindowSystemDisplayManagerOption(IPRangeOption.Read(stream)));
 }