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
- CharacterBufferReference.cs
- ListManagerBindingsCollection.cs
- CommentEmitter.cs
- DynamicAttribute.cs
- ListCardsInFileRequest.cs
- Stackframe.cs
- TraceAsyncResult.cs
- XmlUtf8RawTextWriter.cs
- CompilerGeneratedAttribute.cs
- ToolStripOverflow.cs
- CodeTypeReferenceCollection.cs
- EncryptedType.cs
- BaseTemplateCodeDomTreeGenerator.cs
- HostingEnvironmentSection.cs
- ValidationUtility.cs
- UserMapPath.cs
- GridViewColumn.cs
- NetNamedPipeSecurity.cs
- ReflectPropertyDescriptor.cs
- X509ClientCertificateAuthentication.cs
- TaskExtensions.cs
- coordinatorscratchpad.cs
- ConnectorSelectionGlyph.cs
- RootBrowserWindow.cs
- ContractBase.cs
- SerialErrors.cs
- CodeDOMUtility.cs
- CheckBox.cs
- ISAPIRuntime.cs
- Rotation3D.cs
- ExtendedPropertyDescriptor.cs
- MouseDevice.cs
- ListBoxItem.cs
- DrawListViewSubItemEventArgs.cs
- EqualityComparer.cs
- Table.cs
- Attachment.cs
- Rect.cs
- ConsumerConnectionPointCollection.cs
- MetabaseSettingsIis7.cs
- wmiutil.cs
- ToolstripProfessionalRenderer.cs
- XamlTypeMapper.cs
- RegexStringValidator.cs
- DynamicValidatorEventArgs.cs
- CallbackValidator.cs
- ZoneMembershipCondition.cs
- PropertyPathConverter.cs
- MsmqHostedTransportConfiguration.cs
- PeerCollaborationPermission.cs
- WmlLinkAdapter.cs
- WebPartAuthorizationEventArgs.cs
- Int32Rect.cs
- DirectoryInfo.cs
- DependencyPropertyChangedEventArgs.cs
- TdsParserSessionPool.cs
- UnsafeNativeMethods.cs
- TypographyProperties.cs
- EmptyControlCollection.cs
- ClaimSet.cs
- InstallHelper.cs
- CipherData.cs
- PrintPreviewGraphics.cs
- PointLight.cs
- ForwardPositionQuery.cs
- StateDesigner.Helpers.cs
- CapabilitiesRule.cs
- XPathNodeHelper.cs
- UdpDiscoveryEndpointElement.cs
- HttpRuntime.cs
- SchemaLookupTable.cs
- Marshal.cs
- ComponentCollection.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- _UriSyntax.cs
- BitmapEffectState.cs
- DataGridViewButtonCell.cs
- EntityProxyFactory.cs
- PerfCounterSection.cs
- InstanceDataCollectionCollection.cs
- WebHttpDispatchOperationSelector.cs
- AttributeQuery.cs
- XmlSerializableReader.cs
- ProfileGroupSettingsCollection.cs
- WindowsFormsSectionHandler.cs
- LineMetrics.cs
- XmlNotation.cs
- ButtonChrome.cs
- HttpRuntimeSection.cs
- Number.cs
- XmlHierarchicalDataSourceView.cs
- ListChangedEventArgs.cs
- SymbolMethod.cs
- RowBinding.cs
- MsmqBindingElementBase.cs
- FileChangesMonitor.cs
- OutputCacheSettingsSection.cs
- peernodeimplementation.cs
- CanonicalFormWriter.cs
- CacheForPrimitiveTypes.cs