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
- SqlInternalConnectionSmi.cs
- WebContext.cs
- SubpageParagraph.cs
- ToolStripItemDataObject.cs
- _BaseOverlappedAsyncResult.cs
- QuaternionAnimation.cs
- RowUpdatingEventArgs.cs
- EntitySetBase.cs
- DynamicHyperLink.cs
- MobileFormsAuthentication.cs
- CodeChecksumPragma.cs
- MetadataItemCollectionFactory.cs
- COM2ExtendedBrowsingHandler.cs
- VerificationException.cs
- InvalidDocumentContentsException.cs
- SystemResourceHost.cs
- ContextMenu.cs
- NetStream.cs
- DPAPIProtectedConfigurationProvider.cs
- FusionWrap.cs
- Stroke2.cs
- RoleServiceManager.cs
- Tuple.cs
- Sql8ExpressionRewriter.cs
- WsdlImporterElement.cs
- TextRunCache.cs
- OrderByQueryOptionExpression.cs
- EmissiveMaterial.cs
- DynamicPropertyHolder.cs
- TaskScheduler.cs
- ElementAction.cs
- WebPart.cs
- OdbcParameterCollection.cs
- LongTypeConverter.cs
- ExpandoClass.cs
- XmlSchemaComplexType.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- ClusterRegistryConfigurationProvider.cs
- MeshGeometry3D.cs
- ClientRuntime.cs
- KerberosSecurityTokenProvider.cs
- DataServiceExpressionVisitor.cs
- DataSourceView.cs
- CommandConverter.cs
- HtmlButton.cs
- FilterElement.cs
- WindowsToolbarAsMenu.cs
- SMSvcHost.cs
- RequestSecurityTokenForGetBrowserToken.cs
- GenerateScriptTypeAttribute.cs
- ModulesEntry.cs
- WebPartCollection.cs
- RegisteredScript.cs
- ClientScriptManagerWrapper.cs
- DataGridView.cs
- StrongName.cs
- DragEvent.cs
- SelectionBorderGlyph.cs
- CodeTypeDeclarationCollection.cs
- X509Certificate2Collection.cs
- RequestCacheManager.cs
- MaskDescriptor.cs
- DataControlFieldCell.cs
- ListBindableAttribute.cs
- BaseCollection.cs
- DispatcherEventArgs.cs
- QilGenerator.cs
- FormViewAutoFormat.cs
- FileVersionInfo.cs
- NullableFloatAverageAggregationOperator.cs
- SelectorAutomationPeer.cs
- GrammarBuilderRuleRef.cs
- TextFormatterContext.cs
- UiaCoreApi.cs
- Msmq.cs
- _LocalDataStore.cs
- PaginationProgressEventArgs.cs
- CachedTypeface.cs
- LineBreak.cs
- XsltException.cs
- DataControlFieldCell.cs
- TimeZone.cs
- RectAnimationClockResource.cs
- MultiViewDesigner.cs
- SetIterators.cs
- FrugalList.cs
- XmlSchemaObjectTable.cs
- LoginUtil.cs
- DNS.cs
- ResourceReader.cs
- UrlPath.cs
- SystemIcons.cs
- MetadataItem.cs
- BaseInfoTable.cs
- SplitterEvent.cs
- ControlParameter.cs
- FreezableDefaultValueFactory.cs
- DocumentScope.cs
- PrimaryKeyTypeConverter.cs
- HtmlEncodedRawTextWriter.cs