Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Sockets / IPPacketInformation.cs / 1305376 / 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 } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AuthorizationRule.cs
- DesignColumnCollection.cs
- XmlDeclaration.cs
- ScriptControlManager.cs
- WebServiceEnumData.cs
- SystemBrushes.cs
- Section.cs
- GridViewDeleteEventArgs.cs
- LocalizableAttribute.cs
- EmptyElement.cs
- TargetControlTypeCache.cs
- Debug.cs
- PerformanceCounterManager.cs
- MembershipPasswordException.cs
- MasterPageCodeDomTreeGenerator.cs
- ValueQuery.cs
- GenerateTemporaryTargetAssembly.cs
- IBuiltInEvidence.cs
- DesignerContextDescriptor.cs
- HuffmanTree.cs
- WebProxyScriptElement.cs
- EntitySetRetriever.cs
- DefaultTextStoreTextComposition.cs
- TextDecorationLocationValidation.cs
- Point3D.cs
- OleDbPropertySetGuid.cs
- DataFieldConverter.cs
- URLBuilder.cs
- SmiMetaData.cs
- IPAddress.cs
- StrokeCollectionDefaultValueFactory.cs
- DurableInstanceProvider.cs
- Fault.cs
- DelegateSerializationHolder.cs
- ListSortDescriptionCollection.cs
- Image.cs
- SiteMapNode.cs
- TableDetailsCollection.cs
- SafeRightsManagementQueryHandle.cs
- ListSourceHelper.cs
- Rect3D.cs
- RtfToXamlLexer.cs
- RowToParametersTransformer.cs
- SingleKeyFrameCollection.cs
- PolicyUnit.cs
- DependencyPropertyHelper.cs
- RuleProcessor.cs
- cache.cs
- log.cs
- PrinterSettings.cs
- SqlClientMetaDataCollectionNames.cs
- SID.cs
- Token.cs
- ResourceProviderFactory.cs
- Slider.cs
- ChtmlLinkAdapter.cs
- CodeTypeDelegate.cs
- WebBrowserDesigner.cs
- XmlCodeExporter.cs
- XmlEncodedRawTextWriter.cs
- Logging.cs
- EntityDataSourceWrapperCollection.cs
- Input.cs
- UIElementParagraph.cs
- _SingleItemRequestCache.cs
- SoapSchemaExporter.cs
- ObjectList.cs
- SpellerError.cs
- XmlStreamNodeWriter.cs
- PropertyPath.cs
- ApplyTemplatesAction.cs
- CharStorage.cs
- LayoutEvent.cs
- XamlBrushSerializer.cs
- Utils.cs
- RegexTree.cs
- StorageFunctionMapping.cs
- BezierSegment.cs
- DataServiceException.cs
- LineUtil.cs
- SByteConverter.cs
- CommandValueSerializer.cs
- WebBrowserNavigatedEventHandler.cs
- LicenseContext.cs
- ResourceExpressionBuilder.cs
- DataBinder.cs
- EmissiveMaterial.cs
- LogWriteRestartAreaAsyncResult.cs
- BindableAttribute.cs
- ProcessManager.cs
- HttpRuntimeSection.cs
- HostSecurityManager.cs
- SingleAnimation.cs
- AnnotationService.cs
- SplineKeyFrames.cs
- ImpersonationOption.cs
- SystemIPv4InterfaceProperties.cs
- ReadOnlyCollection.cs
- JsonReader.cs
- ToolStripItem.cs