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
- OpenTypeCommon.cs
- FormattedText.cs
- OutputChannel.cs
- CorrelationTokenTypeConvertor.cs
- ServicePointManager.cs
- RealizationDrawingContextWalker.cs
- _NetworkingPerfCounters.cs
- FormViewInsertedEventArgs.cs
- SchemaCollectionPreprocessor.cs
- PageRequestManager.cs
- HttpsHostedTransportConfiguration.cs
- LinqDataSourceHelper.cs
- DesignUtil.cs
- ProxyWebPartManager.cs
- HwndMouseInputProvider.cs
- DataServiceKeyAttribute.cs
- GridViewPageEventArgs.cs
- FilterException.cs
- WorkflowMessageEventArgs.cs
- WebPartZoneDesigner.cs
- PageThemeCodeDomTreeGenerator.cs
- brushes.cs
- PermissionAttributes.cs
- TextEditorThreadLocalStore.cs
- MulticastOption.cs
- TextRunCacheImp.cs
- LambdaSerializationException.cs
- DataGridViewTextBoxCell.cs
- Menu.cs
- ObjectDataSourceChooseMethodsPanel.cs
- Completion.cs
- WebPartsPersonalizationAuthorization.cs
- SoapParser.cs
- CanExecuteRoutedEventArgs.cs
- IxmlLineInfo.cs
- WebBrowserUriTypeConverter.cs
- EntityDataSourceStatementEditorForm.cs
- WsdlEndpointConversionContext.cs
- NumericExpr.cs
- SafeCryptoHandles.cs
- BindingExpressionUncommonField.cs
- CommentAction.cs
- BitmapFrame.cs
- XhtmlBasicValidationSummaryAdapter.cs
- RelationshipEndMember.cs
- ScriptingProfileServiceSection.cs
- CounterSample.cs
- CheckPair.cs
- DescendentsWalkerBase.cs
- AppliedDeviceFiltersDialog.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- HtmlTableCell.cs
- WebPartCloseVerb.cs
- UxThemeWrapper.cs
- SatelliteContractVersionAttribute.cs
- DataGridPagerStyle.cs
- CodeDomComponentSerializationService.cs
- QueryCacheEntry.cs
- WebPartEditVerb.cs
- MetaDataInfo.cs
- HttpCookie.cs
- RepeatButton.cs
- CultureTable.cs
- AssemblyBuilder.cs
- AnnotationResource.cs
- DataGridViewCellCancelEventArgs.cs
- MenuItemStyle.cs
- SiteMembershipCondition.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- SaveFileDialog.cs
- EditorZoneBase.cs
- OwnerDrawPropertyBag.cs
- WebPartTracker.cs
- Geometry.cs
- NTAccount.cs
- TabRenderer.cs
- IntPtr.cs
- DBSchemaTable.cs
- MembershipSection.cs
- SaveWorkflowCommand.cs
- PixelFormats.cs
- FacetValueContainer.cs
- DateTimeFormat.cs
- EventListenerClientSide.cs
- IIS7WorkerRequest.cs
- FormConverter.cs
- BaseParaClient.cs
- NavigationPropertyEmitter.cs
- ProcessThreadDesigner.cs
- FormsAuthenticationConfiguration.cs
- EndpointAddressAugust2004.cs
- SerialErrors.cs
- PrePrepareMethodAttribute.cs
- Base64Decoder.cs
- ValidationRuleCollection.cs
- SafeFindHandle.cs
- RuleSet.cs
- OdbcUtils.cs
- Screen.cs
- FtpCachePolicyElement.cs