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
- Button.cs
- Region.cs
- BamlLocalizableResourceKey.cs
- StreamInfo.cs
- UnsafeNativeMethods.cs
- TimeSpanStorage.cs
- ReflectionUtil.cs
- EffectiveValueEntry.cs
- ReferencedType.cs
- FieldNameLookup.cs
- DataGridViewTextBoxColumn.cs
- RouteData.cs
- CodeIdentifiers.cs
- ObjectAnimationUsingKeyFrames.cs
- BufferCache.cs
- ResourceReader.cs
- Label.cs
- WebPartHelpVerb.cs
- WhitespaceSignificantCollectionAttribute.cs
- KeyToListMap.cs
- EntityDataSourceDesigner.cs
- QuadraticBezierSegment.cs
- DocumentApplicationJournalEntry.cs
- DelimitedListTraceListener.cs
- NullableIntMinMaxAggregationOperator.cs
- ChangePassword.cs
- ConnectionProviderAttribute.cs
- CallSiteOps.cs
- EditorServiceContext.cs
- ObjectIDGenerator.cs
- BitmapEffectInputData.cs
- AttributeCallbackBuilder.cs
- ElementNotAvailableException.cs
- SmiGettersStream.cs
- DataGridViewTextBoxCell.cs
- FrameworkTextComposition.cs
- WebPartVerb.cs
- ContentDesigner.cs
- CheckBoxStandardAdapter.cs
- OutOfProcStateClientManager.cs
- IDReferencePropertyAttribute.cs
- TcpServerChannel.cs
- StylusDownEventArgs.cs
- PropertyValueUIItem.cs
- CategoryAttribute.cs
- ObjectAnimationUsingKeyFrames.cs
- MembershipUser.cs
- ChildrenQuery.cs
- PenThreadWorker.cs
- InfoCardCryptoHelper.cs
- ErrorReporting.cs
- TextRunTypographyProperties.cs
- ItemDragEvent.cs
- TransformerConfigurationWizardBase.cs
- WebPartConnectVerb.cs
- XmlEntity.cs
- ColumnMapVisitor.cs
- TransactionInformation.cs
- DiscriminatorMap.cs
- RemotingConfigParser.cs
- SqlMethodAttribute.cs
- PeerCredentialElement.cs
- XhtmlStyleClass.cs
- PackageDigitalSignatureManager.cs
- CodeEntryPointMethod.cs
- BinaryWriter.cs
- PresentationTraceSources.cs
- QilPatternVisitor.cs
- XmlSerializerVersionAttribute.cs
- NetworkInformationPermission.cs
- MemoryFailPoint.cs
- CatalogPart.cs
- EncoderExceptionFallback.cs
- TypeBuilderInstantiation.cs
- LifetimeServices.cs
- SessionStateContainer.cs
- UIAgentMonitor.cs
- DataGridViewBindingCompleteEventArgs.cs
- DocumentReferenceCollection.cs
- SchemaImporterExtensionsSection.cs
- LineGeometry.cs
- SweepDirectionValidation.cs
- TextEffect.cs
- NumberEdit.cs
- InvokeFunc.cs
- BrowserCapabilitiesCompiler.cs
- ToolStripSystemRenderer.cs
- ServiceDesigner.cs
- DataTableReader.cs
- BroadcastEventHelper.cs
- CustomErrorsSectionWrapper.cs
- BooleanProjectedSlot.cs
- ColumnCollectionEditor.cs
- ForceCopyBuildProvider.cs
- FontUnit.cs
- XmlSchemaType.cs
- XmlDataLoader.cs
- WarningException.cs
- HwndHostAutomationPeer.cs
- EFTableProvider.cs