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
- MessageSmuggler.cs
- FontStyle.cs
- XmlValidatingReaderImpl.cs
- AxImporter.cs
- ConstructorBuilder.cs
- XmlSchemaSimpleContentExtension.cs
- StaticExtension.cs
- GridErrorDlg.cs
- TdsParserHelperClasses.cs
- validationstate.cs
- ScrollProviderWrapper.cs
- SourceInterpreter.cs
- OdbcConnectionString.cs
- UserUseLicenseDictionaryLoader.cs
- PropertyBuilder.cs
- WebPartEditorCancelVerb.cs
- CodeExporter.cs
- DownloadProgressEventArgs.cs
- ColorTransform.cs
- DataGridLinkButton.cs
- DbConnectionPoolGroupProviderInfo.cs
- DebugInfoGenerator.cs
- DynamicDataResources.Designer.cs
- GuidelineSet.cs
- AmbientLight.cs
- ReferencedAssemblyResolver.cs
- columnmapfactory.cs
- DataBindingHandlerAttribute.cs
- Cursor.cs
- PolyLineSegment.cs
- BitmapFrameEncode.cs
- DocumentPage.cs
- ScriptComponentDescriptor.cs
- DateTimeFormat.cs
- StreamAsIStream.cs
- XsltInput.cs
- XmlDownloadManager.cs
- DirectoryObjectSecurity.cs
- RectAnimationClockResource.cs
- WorkflowRuntimeSection.cs
- BooleanExpr.cs
- DrawingCollection.cs
- StylusCaptureWithinProperty.cs
- XpsDocumentEvent.cs
- TemplateBindingExpression.cs
- EmptyImpersonationContext.cs
- MulticastIPAddressInformationCollection.cs
- XmlCollation.cs
- DocumentGridPage.cs
- SrgsItemList.cs
- SqlConnectionPoolProviderInfo.cs
- assemblycache.cs
- BufferAllocator.cs
- BaseValidatorDesigner.cs
- ColumnMapVisitor.cs
- CodeValidator.cs
- ETagAttribute.cs
- LongCountAggregationOperator.cs
- EventToken.cs
- TailPinnedEventArgs.cs
- GenerateTemporaryTargetAssembly.cs
- QilStrConcatenator.cs
- ExpressionContext.cs
- LogicalExpressionTypeConverter.cs
- SelectionRangeConverter.cs
- Cursors.cs
- BuilderInfo.cs
- PermissionListSet.cs
- WebPartCancelEventArgs.cs
- StopRoutingHandler.cs
- ADMembershipUser.cs
- KeyedCollection.cs
- ManagementObjectSearcher.cs
- CorruptingExceptionCommon.cs
- CacheMemory.cs
- TableRowCollection.cs
- NativeRecognizer.cs
- CollaborationHelperFunctions.cs
- HttpConfigurationSystem.cs
- EntityDataSourceSelectedEventArgs.cs
- XmlNodeReader.cs
- DataExpression.cs
- PathFigure.cs
- NavigationCommands.cs
- CodeMethodReturnStatement.cs
- Point.cs
- XpsFilter.cs
- TableLayoutRowStyleCollection.cs
- RequestCacheEntry.cs
- MarginsConverter.cs
- LoadMessageLogger.cs
- CfgParser.cs
- InternalTypeHelper.cs
- VectorConverter.cs
- Accessors.cs
- MarshalByValueComponent.cs
- EdmFunction.cs
- ConfigurationValidatorAttribute.cs
- InitializingNewItemEventArgs.cs
- AdornerHitTestResult.cs