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
- ContentIterators.cs
- Freezable.cs
- AuthenticatedStream.cs
- ComponentCommands.cs
- ArrayConverter.cs
- XmlLinkedNode.cs
- ProxyElement.cs
- RecipientInfo.cs
- EncodingTable.cs
- FileLevelControlBuilderAttribute.cs
- hwndwrapper.cs
- RadioButton.cs
- PointCollectionConverter.cs
- ResXBuildProvider.cs
- MailMessageEventArgs.cs
- SystemShuttingDownException.cs
- ForceCopyBuildProvider.cs
- SolidColorBrush.cs
- SurrogateDataContract.cs
- DataBindingCollection.cs
- SmiGettersStream.cs
- PaperSize.cs
- SchemaHelper.cs
- TextStore.cs
- BitConverter.cs
- DependencyObjectCodeDomSerializer.cs
- RulePatternOps.cs
- _HeaderInfo.cs
- NamedPipeDuplicateContext.cs
- ILGenerator.cs
- SubMenuStyleCollectionEditor.cs
- AuthorizationRule.cs
- FileCodeGroup.cs
- XmlWrappingReader.cs
- StatusBar.cs
- BitHelper.cs
- LayoutEngine.cs
- CheckBoxStandardAdapter.cs
- ConfigXmlText.cs
- ValueExpressions.cs
- InternalConfigRoot.cs
- ValueExpressions.cs
- WebServiceErrorEvent.cs
- ObjectViewEntityCollectionData.cs
- StreamMarshaler.cs
- BaseInfoTable.cs
- PermissionSet.cs
- ArglessEventHandlerProxy.cs
- FixedSOMTable.cs
- HttpValueCollection.cs
- ConfigurationManager.cs
- BitmapEffectGroup.cs
- PointValueSerializer.cs
- ContentOperations.cs
- Cursors.cs
- xmlfixedPageInfo.cs
- SharedPerformanceCounter.cs
- MessageDecoder.cs
- mediaeventargs.cs
- PriorityChain.cs
- PropertiesTab.cs
- FormsAuthenticationCredentials.cs
- Int64.cs
- AxParameterData.cs
- CodeComment.cs
- AssemblySettingAttributes.cs
- ArgumentNullException.cs
- DbDeleteCommandTree.cs
- GcHandle.cs
- ByteAnimationBase.cs
- EditingScope.cs
- CalendarDateRange.cs
- PermissionSet.cs
- StatusBar.cs
- ConfigurationStrings.cs
- DeploymentSection.cs
- MeshGeometry3D.cs
- SearchForVirtualItemEventArgs.cs
- HealthMonitoringSectionHelper.cs
- DoubleAnimationUsingKeyFrames.cs
- ManipulationLogic.cs
- DataServiceHost.cs
- BitmapEffectDrawingContextState.cs
- SystemResources.cs
- MobileCapabilities.cs
- ReflectionUtil.cs
- DataTemplateKey.cs
- xmlfixedPageInfo.cs
- Compiler.cs
- PopupControlService.cs
- SQLBinaryStorage.cs
- StylusPointPropertyInfoDefaults.cs
- SqlTypeSystemProvider.cs
- WmfPlaceableFileHeader.cs
- DeviceFilterDictionary.cs
- SymbolEqualComparer.cs
- Faults.cs
- EntityDataSourceEntitySetNameItem.cs
- PkcsUtils.cs
- GenericAuthenticationEventArgs.cs