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
- EntityDataSourceChangedEventArgs.cs
- MethodBuilderInstantiation.cs
- AutoGeneratedFieldProperties.cs
- EmissiveMaterial.cs
- BinaryNode.cs
- TraceContext.cs
- NullableLongAverageAggregationOperator.cs
- DetailsViewPageEventArgs.cs
- __TransparentProxy.cs
- Atom10FeedFormatter.cs
- Token.cs
- ArithmeticException.cs
- DataViewManagerListItemTypeDescriptor.cs
- WebPartMenuStyle.cs
- CurrentChangingEventManager.cs
- DesignerSerializationManager.cs
- EnumerableCollectionView.cs
- WebPartConnectVerb.cs
- Hashtable.cs
- CommandDevice.cs
- Globals.cs
- SmiEventSink_Default.cs
- RoutedCommand.cs
- MsmqSecureHashAlgorithm.cs
- NullRuntimeConfig.cs
- FileUpload.cs
- SignedPkcs7.cs
- RuleSettingsCollection.cs
- TimersDescriptionAttribute.cs
- SigningProgress.cs
- DataViewSetting.cs
- WebHeaderCollection.cs
- ImageAnimator.cs
- FastEncoderWindow.cs
- ThicknessAnimation.cs
- ConnectionOrientedTransportManager.cs
- DispatchChannelSink.cs
- PageSetupDialog.cs
- QilName.cs
- RuleInfoComparer.cs
- ObjectResult.cs
- ErrorStyle.cs
- ContainerParagraph.cs
- BitmapMetadataBlob.cs
- ConfigurationElementProperty.cs
- XmlStreamNodeWriter.cs
- AdapterUtil.cs
- BaseDataList.cs
- AlternateView.cs
- DataObject.cs
- ObjectStateFormatter.cs
- SafeBitVector32.cs
- PermissionToken.cs
- FixedPageAutomationPeer.cs
- SqlTypeSystemProvider.cs
- HttpFileCollection.cs
- RequestCachePolicyConverter.cs
- TableLayoutStyle.cs
- Win32PrintDialog.cs
- DataListItemCollection.cs
- While.cs
- EntityViewGenerationAttribute.cs
- DataGridClipboardHelper.cs
- UnionCodeGroup.cs
- DragAssistanceManager.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ResourcePermissionBase.cs
- EmbeddedMailObject.cs
- PropertyItem.cs
- ObjectQuery.cs
- AnimationTimeline.cs
- Missing.cs
- XsltCompileContext.cs
- SQLDateTimeStorage.cs
- SendMailErrorEventArgs.cs
- DrawingGroup.cs
- OdbcConnectionFactory.cs
- X509ChainElement.cs
- EFDataModelProvider.cs
- BufferedOutputStream.cs
- FamilyMapCollection.cs
- GridLengthConverter.cs
- NeutralResourcesLanguageAttribute.cs
- RSAPKCS1SignatureFormatter.cs
- WorkflowDefinitionDispenser.cs
- CellNormalizer.cs
- HtmlTable.cs
- Html32TextWriter.cs
- dtdvalidator.cs
- AsyncResult.cs
- JsonReader.cs
- WindowsScrollBar.cs
- OperationCanceledException.cs
- QilPatternFactory.cs
- DetailsViewDeleteEventArgs.cs
- EncryptedKeyIdentifierClause.cs
- GrammarBuilderPhrase.cs
- TransactionOptions.cs
- ResourceAttributes.cs
- WhitespaceRule.cs