Code:
/ DotNET / DotNET / 8.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
- NavigateEvent.cs
- HttpStaticObjectsCollectionBase.cs
- DataRelation.cs
- _AutoWebProxyScriptEngine.cs
- XmlSchemaAttributeGroupRef.cs
- Repeater.cs
- DataGridViewTextBoxCell.cs
- EntityObject.cs
- DesignerForm.cs
- relpropertyhelper.cs
- StringDictionaryWithComparer.cs
- StreamMarshaler.cs
- TextCharacters.cs
- ItemType.cs
- RootDesignerSerializerAttribute.cs
- PerformanceCountersElement.cs
- RecommendedAsConfigurableAttribute.cs
- WebZone.cs
- _NegotiateClient.cs
- ColorConvertedBitmap.cs
- HttpHandlerAction.cs
- InputProviderSite.cs
- AsyncPostBackErrorEventArgs.cs
- HostProtectionPermission.cs
- RegexBoyerMoore.cs
- unsafeIndexingFilterStream.cs
- _SafeNetHandles.cs
- NetTcpSection.cs
- XPathPatternBuilder.cs
- Ref.cs
- CustomValidator.cs
- RIPEMD160Managed.cs
- TraceRecords.cs
- SessionPageStateSection.cs
- CodeCatchClause.cs
- ToolStripItem.cs
- RelOps.cs
- SettingsPropertyValue.cs
- DivideByZeroException.cs
- XmlReflectionMember.cs
- SerialPort.cs
- DataViewSetting.cs
- SystemColorTracker.cs
- DBSchemaRow.cs
- JoinSymbol.cs
- QilSortKey.cs
- CompositeKey.cs
- compensatingcollection.cs
- HttpRuntimeSection.cs
- SortedList.cs
- ValueTypeFixupInfo.cs
- QuotedPrintableStream.cs
- PolicyValidationException.cs
- UncommonField.cs
- InstanceData.cs
- TextOutput.cs
- OrderedDictionary.cs
- BufferedMessageData.cs
- RuleRef.cs
- AddingNewEventArgs.cs
- XamlVector3DCollectionSerializer.cs
- StateChangeEvent.cs
- StickyNote.cs
- WizardDesigner.cs
- RegisteredScript.cs
- X509SubjectKeyIdentifierClause.cs
- VisualStateGroup.cs
- WebHostScriptMappingsInstallComponent.cs
- MessageDescriptionCollection.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ProfileInfo.cs
- XmlILConstructAnalyzer.cs
- XmlSchemaSimpleContentRestriction.cs
- RijndaelManagedTransform.cs
- QualificationDataItem.cs
- FieldBuilder.cs
- AnimationClock.cs
- XmlBindingWorker.cs
- StructuralType.cs
- IdentityHolder.cs
- QilReplaceVisitor.cs
- SettingsPropertyCollection.cs
- HttpProfileGroupBase.cs
- ProxyHwnd.cs
- ImportException.cs
- TreeBuilder.cs
- ConditionalAttribute.cs
- SQLGuid.cs
- WebPartsPersonalization.cs
- _DynamicWinsockMethods.cs
- BitmapEffectDrawingContextWalker.cs
- DBBindings.cs
- BulletedList.cs
- XhtmlBasicCommandAdapter.cs
- BmpBitmapEncoder.cs
- UIAgentCrashedException.cs
- ClientSponsor.cs
- SourceItem.cs
- ComplexPropertyEntry.cs
- GlyphRunDrawing.cs