Code:
/ DotNET / DotNET / 8.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
- MsmqBindingMonitor.cs
- ShellProvider.cs
- SqlDataSourceDesigner.cs
- ControlIdConverter.cs
- FailedToStartupUIException.cs
- HtmlImage.cs
- Button.cs
- ConnectionStringsSection.cs
- XmlMembersMapping.cs
- Operator.cs
- LongPath.cs
- LinqDataSourceStatusEventArgs.cs
- FontResourceCache.cs
- log.cs
- ListComponentEditor.cs
- XamlFigureLengthSerializer.cs
- SynchronizedDisposablePool.cs
- SchemaTypeEmitter.cs
- DataViewManager.cs
- DataGridViewMethods.cs
- WindowsEditBoxRange.cs
- PagesSection.cs
- StorageAssociationSetMapping.cs
- DependencyPropertyKind.cs
- DataBindingList.cs
- DragDropManager.cs
- HtmlObjectListAdapter.cs
- MetaModel.cs
- ChangePasswordDesigner.cs
- StylusEditingBehavior.cs
- ConfigUtil.cs
- SingleAnimation.cs
- StorageSetMapping.cs
- AggregateNode.cs
- CharStorage.cs
- FirstMatchCodeGroup.cs
- SqlNodeTypeOperators.cs
- CodeTypeDeclaration.cs
- _LocalDataStoreMgr.cs
- StyleConverter.cs
- MaskDescriptor.cs
- RequestUriProcessor.cs
- LinearKeyFrames.cs
- PropertyEmitter.cs
- Knowncolors.cs
- ListViewItemSelectionChangedEvent.cs
- DbProviderFactoriesConfigurationHandler.cs
- OAVariantLib.cs
- Single.cs
- Color.cs
- CodeDelegateCreateExpression.cs
- FillRuleValidation.cs
- ContractsBCL.cs
- MatrixTransform3D.cs
- listitem.cs
- HtmlTitle.cs
- ValidationEventArgs.cs
- SimpleFieldTemplateUserControl.cs
- SafeProcessHandle.cs
- DbProviderFactory.cs
- WebPartDescription.cs
- BamlRecordReader.cs
- SafeNativeMethodsMilCoreApi.cs
- AppDomainEvidenceFactory.cs
- BaseDataList.cs
- PrintPageEvent.cs
- BoolExpressionVisitors.cs
- WebPartEditorOkVerb.cs
- DataGridViewCellParsingEventArgs.cs
- ConfigurationValue.cs
- LogicalExpr.cs
- SqlDependencyUtils.cs
- Content.cs
- HttpGetServerProtocol.cs
- Win32Exception.cs
- FlowDocumentReaderAutomationPeer.cs
- LassoSelectionBehavior.cs
- SerialErrors.cs
- CachedPathData.cs
- InvalidPropValue.cs
- PriorityRange.cs
- SafeRegistryHandle.cs
- ClientConfigurationSystem.cs
- ColumnMapProcessor.cs
- COM2PropertyPageUITypeConverter.cs
- UInt32.cs
- XmlCharCheckingWriter.cs
- ProfilePropertyNameValidator.cs
- CatalogPart.cs
- UnsafeNetInfoNativeMethods.cs
- DependentTransaction.cs
- Menu.cs
- ApplicationServiceManager.cs
- MasterPage.cs
- StrokeRenderer.cs
- JsonWriterDelegator.cs
- FormViewCommandEventArgs.cs
- SoapSchemaExporter.cs
- localization.cs
- DataRecordObjectView.cs