Code:
/ FX-1434 / FX-1434 / 1.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
- AssemblyBuilderData.cs
- _FtpDataStream.cs
- TrackingMemoryStream.cs
- QilReference.cs
- AutomationIdentifierGuids.cs
- EditCommandColumn.cs
- NamespaceCollection.cs
- RowToParametersTransformer.cs
- PaperSize.cs
- UIElementIsland.cs
- FixedElement.cs
- X509LogoTypeExtension.cs
- NavigationProperty.cs
- PropertyTab.cs
- ScrollItemProviderWrapper.cs
- CutCopyPasteHelper.cs
- DataGridCell.cs
- TextTreeRootNode.cs
- CustomValidator.cs
- MetadataSource.cs
- BindingWorker.cs
- DataControlFieldTypeEditor.cs
- BindingExpression.cs
- InputMethodStateChangeEventArgs.cs
- SQLInt32Storage.cs
- MemberDescriptor.cs
- MetadataHelper.cs
- OutputCacheSection.cs
- HtmlForm.cs
- ObjectHelper.cs
- LockCookie.cs
- TimeIntervalCollection.cs
- ServiceReference.cs
- WindowsSolidBrush.cs
- ViewService.cs
- TypeDependencyAttribute.cs
- MethodRental.cs
- SafeRegistryKey.cs
- BamlResourceContent.cs
- ObjectTypeMapping.cs
- BatchServiceHost.cs
- Select.cs
- Wizard.cs
- PtsCache.cs
- RoleService.cs
- MemoryMappedFile.cs
- BuildDependencySet.cs
- DesigntimeLicenseContext.cs
- ExpressionList.cs
- AnnotationMap.cs
- HttpStaticObjectsCollectionWrapper.cs
- Process.cs
- WebPartEditVerb.cs
- FixUpCollection.cs
- ImageButton.cs
- unitconverter.cs
- ReferentialConstraint.cs
- HelpProvider.cs
- SharedConnectionWorkflowTransactionService.cs
- DocumentOrderQuery.cs
- InProcStateClientManager.cs
- Mapping.cs
- InfoCardXmlSerializer.cs
- XmlSchemaParticle.cs
- JoinElimination.cs
- SqlInternalConnectionSmi.cs
- WindowsListViewSubItem.cs
- BigInt.cs
- MissingMemberException.cs
- Function.cs
- HandlerBase.cs
- EntityAdapter.cs
- NetDataContractSerializer.cs
- pingexception.cs
- InternalPermissions.cs
- Merger.cs
- ProtocolViolationException.cs
- UIInitializationException.cs
- ISFTagAndGuidCache.cs
- InternalPolicyElement.cs
- ListViewGroupItemCollection.cs
- DrawListViewItemEventArgs.cs
- AsyncResult.cs
- ModuleConfigurationInfo.cs
- ToolStrip.cs
- PolicyException.cs
- MetadataItemCollectionFactory.cs
- AuthorizationRuleCollection.cs
- LoginName.cs
- TrackingQueryElement.cs
- ChangeProcessor.cs
- Expressions.cs
- DataGridViewCellCollection.cs
- DaylightTime.cs
- PolyQuadraticBezierSegment.cs
- ListView.cs
- ClientConfigurationHost.cs
- StoryFragments.cs
- ADConnectionHelper.cs
- TargetException.cs