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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Single.cs
- StreamUpgradeProvider.cs
- StorageEndPropertyMapping.cs
- SqlParameter.cs
- GridViewRowCollection.cs
- basecomparevalidator.cs
- ImpersonationContext.cs
- TrustManager.cs
- _AcceptOverlappedAsyncResult.cs
- CollectionsUtil.cs
- ToolBar.cs
- StorageBasedPackageProperties.cs
- ReadonlyMessageFilter.cs
- DataGridViewCellStyleChangedEventArgs.cs
- GlyphsSerializer.cs
- ObjectNavigationPropertyMapping.cs
- CapabilitiesAssignment.cs
- BamlResourceSerializer.cs
- ListView.cs
- SmtpException.cs
- InternalPermissions.cs
- LongTypeConverter.cs
- ServiceOperationWrapper.cs
- QueryOperationResponseOfT.cs
- HttpServerUtilityWrapper.cs
- MbpInfo.cs
- LoggedException.cs
- WebPartDisplayMode.cs
- UpdatableWrapper.cs
- FileDataSourceCache.cs
- Misc.cs
- BitmapScalingModeValidation.cs
- SqlClientWrapperSmiStreamChars.cs
- IssuerInformation.cs
- FormsIdentity.cs
- EncoderReplacementFallback.cs
- ThreadExceptionEvent.cs
- StringValidatorAttribute.cs
- _OverlappedAsyncResult.cs
- Pair.cs
- Number.cs
- FileAuthorizationModule.cs
- SynchronousChannel.cs
- LocalTransaction.cs
- DPCustomTypeDescriptor.cs
- SequentialActivityDesigner.cs
- KeyPressEvent.cs
- Stacktrace.cs
- WebExceptionStatus.cs
- ModifierKeysValueSerializer.cs
- File.cs
- EndpointConfigContainer.cs
- ActivationArguments.cs
- AsmxEndpointPickerExtension.cs
- UserControlParser.cs
- Barrier.cs
- TextSelectionProcessor.cs
- PersonalizationProvider.cs
- CodeArgumentReferenceExpression.cs
- HotSpot.cs
- BindMarkupExtensionSerializer.cs
- ExtractedStateEntry.cs
- BuildProviderCollection.cs
- OptimizerPatterns.cs
- SID.cs
- Helpers.cs
- Base64Stream.cs
- XsdDataContractImporter.cs
- SmtpNtlmAuthenticationModule.cs
- UriExt.cs
- NetMsmqBindingCollectionElement.cs
- XmlILIndex.cs
- WebReferenceOptions.cs
- Animatable.cs
- IssuedTokenServiceCredential.cs
- DES.cs
- DebuggerAttributes.cs
- ItemList.cs
- SoapDocumentMethodAttribute.cs
- BoundField.cs
- AutomationElementIdentifiers.cs
- Package.cs
- SqlInternalConnectionSmi.cs
- ColumnMapCopier.cs
- TreeView.cs
- SiteMap.cs
- MultiAsyncResult.cs
- NetTcpSecurity.cs
- __ComObject.cs
- WsatExtendedInformation.cs
- SynchronizedPool.cs
- InputLanguageCollection.cs
- CaseExpr.cs
- SQLChars.cs
- Rotation3DKeyFrameCollection.cs
- DataGridViewCellEventArgs.cs
- PointAnimationBase.cs
- KeySpline.cs
- SkewTransform.cs
- WCFModelStrings.Designer.cs