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
- ItemCheckEvent.cs
- ApplicationActivator.cs
- EmptyImpersonationContext.cs
- CodeIndexerExpression.cs
- TypeDescriptionProvider.cs
- ResourceWriter.cs
- HtmlButton.cs
- ResponseStream.cs
- DetailsViewModeEventArgs.cs
- TypeInitializationException.cs
- DataTemplate.cs
- SecurityException.cs
- UpdateRecord.cs
- PromptBuilder.cs
- _SpnDictionary.cs
- GenericWebPart.cs
- SqlPersonalizationProvider.cs
- XmlQueryContext.cs
- PlatformCulture.cs
- IdnMapping.cs
- ComplexType.cs
- SspiWrapper.cs
- XPathChildIterator.cs
- WhiteSpaceTrimStringConverter.cs
- dbdatarecord.cs
- XmlDesignerDataSourceView.cs
- SqlDeflator.cs
- ResXDataNode.cs
- SqlError.cs
- Variant.cs
- ErrorFormatter.cs
- MessageSecurityProtocol.cs
- ReadOnlyHierarchicalDataSource.cs
- ResourceType.cs
- ThreadExceptionEvent.cs
- TemplatePagerField.cs
- ZipIOCentralDirectoryFileHeader.cs
- MetadataArtifactLoaderCompositeFile.cs
- ByteConverter.cs
- SqlRowUpdatingEvent.cs
- HScrollBar.cs
- CultureInfo.cs
- ContextProperty.cs
- IndentTextWriter.cs
- AssemblyBuilderData.cs
- mactripleDES.cs
- MissingMemberException.cs
- ServiceHttpHandlerFactory.cs
- Mappings.cs
- SystemGatewayIPAddressInformation.cs
- PreservationFileWriter.cs
- GroupQuery.cs
- CfgParser.cs
- RelationshipDetailsCollection.cs
- ValidatedMobileControlConverter.cs
- NonClientArea.cs
- ExpandCollapseProviderWrapper.cs
- WebPartManagerInternals.cs
- WebException.cs
- SiteMapPath.cs
- GridToolTip.cs
- OpCodes.cs
- ColumnMapProcessor.cs
- XmlComment.cs
- Cell.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ThicknessAnimationBase.cs
- TextBlockAutomationPeer.cs
- XmlnsDictionary.cs
- DockingAttribute.cs
- ConfigurationStrings.cs
- webbrowsersite.cs
- XmlDocumentSchema.cs
- CodeExpressionStatement.cs
- WindowPattern.cs
- ArraySubsetEnumerator.cs
- Brush.cs
- UniqueEventHelper.cs
- Input.cs
- ScriptingRoleServiceSection.cs
- DirectionalLight.cs
- SchemaComplexType.cs
- IIS7WorkerRequest.cs
- MailMessageEventArgs.cs
- StackBuilderSink.cs
- SystemIPGlobalProperties.cs
- DirtyTextRange.cs
- IISMapPath.cs
- XmlDataContract.cs
- MdImport.cs
- SettingsBase.cs
- mediapermission.cs
- ResolveDuplexCD1AsyncResult.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- GlyphShapingProperties.cs
- AddInToken.cs
- KnownTypes.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ResetableIterator.cs
- ZipPackage.cs