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
- CharKeyFrameCollection.cs
- SrgsSemanticInterpretationTag.cs
- BufferedWebEventProvider.cs
- SubclassTypeValidatorAttribute.cs
- DesignerLoader.cs
- SoundPlayer.cs
- SpecularMaterial.cs
- GridViewCancelEditEventArgs.cs
- CachingHintValidation.cs
- ResolvedKeyFrameEntry.cs
- WCFBuildProvider.cs
- ServiceDeploymentInfo.cs
- ConnectionsZoneDesigner.cs
- BaseTemplateBuildProvider.cs
- RectangleConverter.cs
- ObjectNotFoundException.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- connectionpool.cs
- ButtonPopupAdapter.cs
- Matrix.cs
- securestring.cs
- BitmapMetadataBlob.cs
- AnimationStorage.cs
- OAVariantLib.cs
- ComponentConverter.cs
- PostBackTrigger.cs
- ProtocolState.cs
- PackWebResponse.cs
- DynamicVirtualDiscoSearcher.cs
- ValidatedControlConverter.cs
- AssemblyEvidenceFactory.cs
- OracleBinary.cs
- MaskInputRejectedEventArgs.cs
- Main.cs
- Color.cs
- RegistryExceptionHelper.cs
- LicenseException.cs
- ExtentCqlBlock.cs
- ControlBindingsCollection.cs
- WindowsSysHeader.cs
- ResourceDictionaryCollection.cs
- Missing.cs
- TextParagraphProperties.cs
- QueryExtender.cs
- HyperLink.cs
- HttpRequestContext.cs
- CollectionViewGroupInternal.cs
- assemblycache.cs
- SerializationTrace.cs
- FormatConvertedBitmap.cs
- ListViewInsertedEventArgs.cs
- DbConnectionPoolGroupProviderInfo.cs
- Symbol.cs
- CreateUserErrorEventArgs.cs
- GradientBrush.cs
- ImageAutomationPeer.cs
- IisTraceListener.cs
- SqlErrorCollection.cs
- SrgsSemanticInterpretationTag.cs
- WindowsComboBox.cs
- Queue.cs
- ChannelFactoryBase.cs
- DbModificationCommandTree.cs
- SubMenuStyle.cs
- KeyGestureValueSerializer.cs
- WhitespaceRuleReader.cs
- BindingGraph.cs
- PropertyIdentifier.cs
- FixedSOMImage.cs
- TerminatingOperationBehavior.cs
- mansign.cs
- FontInfo.cs
- SubpageParaClient.cs
- PrintSchema.cs
- ConvertEvent.cs
- DocumentGridContextMenu.cs
- Geometry3D.cs
- SecurityTimestamp.cs
- FormClosedEvent.cs
- AssemblyAttributes.cs
- EventSinkActivityDesigner.cs
- TraceSection.cs
- WindowVisualStateTracker.cs
- SqlExpressionNullability.cs
- _ConnectionGroup.cs
- ValidatingReaderNodeData.cs
- ConfigurationValidatorBase.cs
- ListViewInsertionMark.cs
- ChineseLunisolarCalendar.cs
- ConnectionStringSettingsCollection.cs
- AutomationPropertyInfo.cs
- mediaeventshelper.cs
- _NtlmClient.cs
- PageAsyncTask.cs
- DecoderFallback.cs
- EditBehavior.cs
- GridToolTip.cs
- ComNativeDescriptor.cs
- XmlSchemaComplexContentRestriction.cs
- EntityDataSource.cs