Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Sockets / IPPacketInformation.cs / 1 / IPPacketInformation.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Sockets { using System.Net; public struct IPPacketInformation { IPAddress address; int networkInterface; internal IPPacketInformation(IPAddress address, int networkInterface){ this.address = address; this.networkInterface = networkInterface; } public IPAddress Address { get{ return address; } } public int Interface { get{ return networkInterface; } } public static bool operator == (IPPacketInformation packetInformation1, IPPacketInformation packetInformation2 ) { return packetInformation1.Equals(packetInformation2); } public static bool operator != (IPPacketInformation packetInformation1, IPPacketInformation packetInformation2 ) { return !packetInformation1.Equals(packetInformation2); } public override bool Equals(object comparand) { if ((object) comparand == null) { return false; } if (!(comparand is IPPacketInformation)) return false; IPPacketInformation obj = (IPPacketInformation) comparand; if (address.Equals(obj.address) && networkInterface == obj.networkInterface) return (true); return false; } public override int GetHashCode() { return address.GetHashCode() + networkInterface.GetHashCode(); } }; // enum SocketFlags }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExecutedRoutedEventArgs.cs
- DataSysAttribute.cs
- relpropertyhelper.cs
- TdsParserSafeHandles.cs
- AsyncPostBackErrorEventArgs.cs
- ObjectStateEntryDbDataRecord.cs
- DependencyObjectProvider.cs
- TickBar.cs
- IPCCacheManager.cs
- SqlBuffer.cs
- PrePostDescendentsWalker.cs
- AnonymousIdentificationModule.cs
- MetadataUtil.cs
- PropertyDescriptor.cs
- MergeLocalizationDirectives.cs
- WebPartConnectionsCancelEventArgs.cs
- PresentationAppDomainManager.cs
- BypassElementCollection.cs
- JavascriptCallbackResponseProperty.cs
- ComPlusDiagnosticTraceRecords.cs
- BuildProvidersCompiler.cs
- DataGridViewCellCancelEventArgs.cs
- WebPartCloseVerb.cs
- LoginView.cs
- OutputWindow.cs
- AliasedExpr.cs
- FrameSecurityDescriptor.cs
- DataServiceProviderWrapper.cs
- WebRequestModulesSection.cs
- IndependentlyAnimatedPropertyMetadata.cs
- DesignerActionItem.cs
- TypeDelegator.cs
- AppDomainFactory.cs
- IntAverageAggregationOperator.cs
- GenericsInstances.cs
- DefaultPrintController.cs
- WorkflowItemsPresenter.cs
- SubMenuStyleCollection.cs
- SafeLibraryHandle.cs
- ChangeProcessor.cs
- SQLDateTimeStorage.cs
- StorageSetMapping.cs
- FormsAuthenticationUser.cs
- FilterQuery.cs
- EdmEntityTypeAttribute.cs
- WeakReference.cs
- RelatedEnd.cs
- XmlChoiceIdentifierAttribute.cs
- KeyValuePairs.cs
- BuildResultCache.cs
- HtmlImage.cs
- SQLStringStorage.cs
- EmptyEnumerator.cs
- XPathException.cs
- DiagnosticStrings.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XmlChildNodes.cs
- ChangeProcessor.cs
- DoubleAnimationBase.cs
- BindingContext.cs
- SoapReflector.cs
- EmbeddedObject.cs
- Exception.cs
- _SslStream.cs
- OpacityConverter.cs
- SchemaImporterExtensionsSection.cs
- ErrorStyle.cs
- PerfService.cs
- XmlMembersMapping.cs
- TypeDescriptionProvider.cs
- UnsafeNativeMethods.cs
- UnmanagedBitmapWrapper.cs
- METAHEADER.cs
- XmlAttributes.cs
- RelatedPropertyManager.cs
- CompareValidator.cs
- HtmlHead.cs
- ParserContext.cs
- DBDataPermission.cs
- AttributeQuery.cs
- ClientRuntimeConfig.cs
- SQLRoleProvider.cs
- GlobalProxySelection.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- StoreAnnotationsMap.cs
- BlockCollection.cs
- TagNameToTypeMapper.cs
- DataGridViewCellParsingEventArgs.cs
- ErrorView.xaml.cs
- XNameConverter.cs
- PasswordDeriveBytes.cs
- Encoder.cs
- TextEditorTyping.cs
- _StreamFramer.cs
- CodeCatchClauseCollection.cs
- PersistencePipeline.cs
- DataPagerFieldCommandEventArgs.cs
- ServiceThrottlingElement.cs
- ServiceDescriptionImporter.cs
- MimeImporter.cs