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
- BaseDataListPage.cs
- Sentence.cs
- ImageMap.cs
- ImpersonateTokenRef.cs
- UserControlBuildProvider.cs
- ResourceContainer.cs
- AccessedThroughPropertyAttribute.cs
- DoubleStorage.cs
- RIPEMD160.cs
- SubpageParaClient.cs
- RtfFormatStack.cs
- ExceptionAggregator.cs
- VectorKeyFrameCollection.cs
- TemplateNameScope.cs
- DataGridClipboardCellContent.cs
- TextFormatter.cs
- MarginCollapsingState.cs
- URI.cs
- InvalidOleVariantTypeException.cs
- CatalogPartCollection.cs
- DbSetClause.cs
- IntermediatePolicyValidator.cs
- RemotingService.cs
- CodeGen.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- CodeRegionDirective.cs
- CheckBoxFlatAdapter.cs
- Expr.cs
- FontUnitConverter.cs
- BindingExpressionUncommonField.cs
- XmlDocument.cs
- PasswordTextContainer.cs
- BStrWrapper.cs
- XmlSchemaAnnotated.cs
- SystemInfo.cs
- Int16Converter.cs
- Point3DCollectionValueSerializer.cs
- WinInet.cs
- ProjectionCamera.cs
- RowToParametersTransformer.cs
- RawAppCommandInputReport.cs
- DataGridViewDataConnection.cs
- XPathNavigatorReader.cs
- TextDecorations.cs
- LZCodec.cs
- RoleManagerSection.cs
- DependentList.cs
- OleDbException.cs
- WorkflowApplicationAbortedEventArgs.cs
- DesignerWithHeader.cs
- WinInet.cs
- ProfileProvider.cs
- BitmapDownload.cs
- BaseTemplateParser.cs
- StrokeNodeOperations2.cs
- SqlReferenceCollection.cs
- XmlDeclaration.cs
- MergablePropertyAttribute.cs
- WindowsScrollBar.cs
- WebSysDisplayNameAttribute.cs
- RemotingConfigParser.cs
- DataServiceKeyAttribute.cs
- SafeNativeMethods.cs
- NotSupportedException.cs
- Sequence.cs
- Function.cs
- DataContractSerializerServiceBehavior.cs
- ListViewHitTestInfo.cs
- unsafenativemethodsother.cs
- DataSourceListEditor.cs
- DataGridViewTextBoxCell.cs
- XPathDocumentNavigator.cs
- SoapHeaderException.cs
- Translator.cs
- ScrollEventArgs.cs
- IndexedString.cs
- KnownColorTable.cs
- LineServices.cs
- BufferedGraphics.cs
- XmlIlTypeHelper.cs
- InteropExecutor.cs
- AttachedProperty.cs
- Visual3DCollection.cs
- RawAppCommandInputReport.cs
- WorkflowPrinting.cs
- XhtmlBasicSelectionListAdapter.cs
- CapabilitiesAssignment.cs
- ToolStripDropTargetManager.cs
- PathSegmentCollection.cs
- SafeArrayRankMismatchException.cs
- UriWriter.cs
- SmiEventSink_DeferedProcessing.cs
- ConnectionInterfaceCollection.cs
- DigestTraceRecordHelper.cs
- ResourceWriter.cs
- ResponseStream.cs
- ValueTypeFixupInfo.cs
- StatusBarAutomationPeer.cs
- PictureBox.cs
- DependencyPropertyValueSerializer.cs