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
- UpdatePanelControlTrigger.cs
- MessagePropertyDescription.cs
- DeclaredTypeElement.cs
- StructuredTypeEmitter.cs
- TextEvent.cs
- DbException.cs
- ExceptionUtil.cs
- CodeSnippetExpression.cs
- CompModSwitches.cs
- designeractionbehavior.cs
- GiveFeedbackEventArgs.cs
- FunctionNode.cs
- EngineSiteSapi.cs
- WebPartVerb.cs
- DataControlField.cs
- WorkflowMarkupSerializationException.cs
- SymbolEqualComparer.cs
- SmiMetaDataProperty.cs
- OleDbError.cs
- MsmqMessageProperty.cs
- XmlILModule.cs
- ColumnHeader.cs
- LogicalExpr.cs
- ListBindingConverter.cs
- GeneralTransformCollection.cs
- CellTreeNode.cs
- FixedSOMImage.cs
- PropertyDescriptor.cs
- XmlCustomFormatter.cs
- ETagAttribute.cs
- InsufficientMemoryException.cs
- DateTime.cs
- MetadataArtifactLoaderCompositeResource.cs
- FloaterBaseParaClient.cs
- MatchSingleFxEngineOpcode.cs
- SHA1.cs
- TouchDevice.cs
- TemplateXamlTreeBuilder.cs
- UpdateCompiler.cs
- ZipIOExtraField.cs
- ConvertersCollection.cs
- DataServiceClientException.cs
- PassportAuthentication.cs
- Literal.cs
- CodeSnippetTypeMember.cs
- HyperLinkDataBindingHandler.cs
- ClientSideQueueItem.cs
- CacheOutputQuery.cs
- IApplicationTrustManager.cs
- BasicHttpSecurity.cs
- Image.cs
- ExpressionCopier.cs
- CodeTypeOfExpression.cs
- FileUtil.cs
- Win32Native.cs
- SpellerError.cs
- KeyValueConfigurationElement.cs
- BridgeDataReader.cs
- ExecutedRoutedEventArgs.cs
- ProtocolsConfiguration.cs
- DispatcherEventArgs.cs
- WindowsRichEditRange.cs
- COM2PropertyDescriptor.cs
- SqlWebEventProvider.cs
- XmlSchemaAnnotation.cs
- TimeSpanStorage.cs
- FormsAuthenticationModule.cs
- DbMetaDataCollectionNames.cs
- VisualStyleInformation.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- RootDesignerSerializerAttribute.cs
- ListViewGroup.cs
- URLMembershipCondition.cs
- DrawingContext.cs
- BindingContext.cs
- EntityDataSourceUtil.cs
- PreProcessInputEventArgs.cs
- EventProviderBase.cs
- AnyReturnReader.cs
- CompensateDesigner.cs
- SpanIndex.cs
- ListenerElementsCollection.cs
- Binding.cs
- DataGridItem.cs
- WebControlToolBoxItem.cs
- Operand.cs
- SamlAssertion.cs
- StylusButtonEventArgs.cs
- Span.cs
- DbModificationCommandTree.cs
- WmlLabelAdapter.cs
- XhtmlConformanceSection.cs
- NativeMethods.cs
- ModelTreeEnumerator.cs
- XmlSerializerNamespaces.cs
- XmlNodeChangedEventArgs.cs
- EdmComplexTypeAttribute.cs
- AxisAngleRotation3D.cs
- QueryOutputWriter.cs