Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Net / System / Net / Sockets / SocketInformation.cs / 1 / SocketInformation.cs
namespace System.Net.Sockets { [Serializable] public struct SocketInformation{ byte[] protocolInformation; SocketInformationOptions options; public byte[] ProtocolInformation{ get{ return protocolInformation; } set{ protocolInformation = value; } } public SocketInformationOptions Options{ get{ return options; } set{ options = value; } } internal bool IsNonBlocking{ get{ return ((options&SocketInformationOptions.NonBlocking)!=0); } set{ if(value){ options |= SocketInformationOptions.NonBlocking; } else{ options &= ~SocketInformationOptions.NonBlocking; } } } internal bool IsConnected{ get{ return ((options&SocketInformationOptions.Connected)!=0); } set{ if(value){ options |= SocketInformationOptions.Connected; } else{ options &= ~SocketInformationOptions.Connected; } } } internal bool IsListening{ get{ return ((options&SocketInformationOptions.Listening)!=0); } set{ if(value){ options |= SocketInformationOptions.Listening; } else{ options &= ~SocketInformationOptions.Listening; } } } internal bool UseOnlyOverlappedIO{ get{ return ((options&SocketInformationOptions.UseOnlyOverlappedIO)!=0); } set{ if(value){ options |= SocketInformationOptions.UseOnlyOverlappedIO; } else{ options &= ~SocketInformationOptions.UseOnlyOverlappedIO; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Net.Sockets { [Serializable] public struct SocketInformation{ byte[] protocolInformation; SocketInformationOptions options; public byte[] ProtocolInformation{ get{ return protocolInformation; } set{ protocolInformation = value; } } public SocketInformationOptions Options{ get{ return options; } set{ options = value; } } internal bool IsNonBlocking{ get{ return ((options&SocketInformationOptions.NonBlocking)!=0); } set{ if(value){ options |= SocketInformationOptions.NonBlocking; } else{ options &= ~SocketInformationOptions.NonBlocking; } } } internal bool IsConnected{ get{ return ((options&SocketInformationOptions.Connected)!=0); } set{ if(value){ options |= SocketInformationOptions.Connected; } else{ options &= ~SocketInformationOptions.Connected; } } } internal bool IsListening{ get{ return ((options&SocketInformationOptions.Listening)!=0); } set{ if(value){ options |= SocketInformationOptions.Listening; } else{ options &= ~SocketInformationOptions.Listening; } } } internal bool UseOnlyOverlappedIO{ get{ return ((options&SocketInformationOptions.UseOnlyOverlappedIO)!=0); } set{ if(value){ options |= SocketInformationOptions.UseOnlyOverlappedIO; } else{ options &= ~SocketInformationOptions.UseOnlyOverlappedIO; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextSimpleMarkerProperties.cs
- DefaultTextStoreTextComposition.cs
- CSharpCodeProvider.cs
- MapPathBasedVirtualPathProvider.cs
- CodeVariableReferenceExpression.cs
- TextViewSelectionProcessor.cs
- AuthenticationService.cs
- UriParserTemplates.cs
- SqlTriggerAttribute.cs
- OrderedDictionary.cs
- SQLGuidStorage.cs
- InternalsVisibleToAttribute.cs
- DesignBindingConverter.cs
- PrintDialog.cs
- CombinedGeometry.cs
- PrintingPermissionAttribute.cs
- CfgParser.cs
- ToolStripRendererSwitcher.cs
- TriggerCollection.cs
- TextElementCollectionHelper.cs
- VirtualDirectoryMapping.cs
- ArrayExtension.cs
- HtmlWindow.cs
- NumberSubstitution.cs
- PackWebResponse.cs
- IArgumentProvider.cs
- ToolTip.cs
- ReferencedCollectionType.cs
- GridItemProviderWrapper.cs
- ProvidersHelper.cs
- BinarySerializer.cs
- StructuralCache.cs
- CallContext.cs
- ProxyGenerator.cs
- TableLayoutSettings.cs
- EventlogProvider.cs
- OrderedDictionaryStateHelper.cs
- MDIControlStrip.cs
- ToolboxItemFilterAttribute.cs
- VisualStyleElement.cs
- ProfessionalColors.cs
- ChildTable.cs
- precedingquery.cs
- WebDisplayNameAttribute.cs
- BuildProvidersCompiler.cs
- Sql8ExpressionRewriter.cs
- EntityType.cs
- ThreadNeutralSemaphore.cs
- CodeCastExpression.cs
- ModifierKeysValueSerializer.cs
- HandlerBase.cs
- SplineQuaternionKeyFrame.cs
- SoapElementAttribute.cs
- ExtendedPropertyCollection.cs
- BaseConfigurationRecord.cs
- StylusEventArgs.cs
- TemplateManager.cs
- Suspend.cs
- RowTypeElement.cs
- ScriptControl.cs
- AudioFileOut.cs
- HMACSHA384.cs
- HttpCachePolicy.cs
- ConfigDefinitionUpdates.cs
- MemberAccessException.cs
- AssociativeAggregationOperator.cs
- UpdateProgress.cs
- EnumConverter.cs
- ApplicationId.cs
- Int64.cs
- SafeThreadHandle.cs
- ButtonFieldBase.cs
- TargetControlTypeAttribute.cs
- ResponseStream.cs
- EventPrivateKey.cs
- DnsEndPoint.cs
- BitmapPalette.cs
- ValidatingReaderNodeData.cs
- ValidationErrorCollection.cs
- WebEvents.cs
- WebPartUserCapability.cs
- SQLBoolean.cs
- Menu.cs
- Logging.cs
- FormViewInsertEventArgs.cs
- XmlIlGenerator.cs
- CompModHelpers.cs
- FileFormatException.cs
- TableLayoutColumnStyleCollection.cs
- StorageMappingItemLoader.cs
- DataSourceNameHandler.cs
- SqlInternalConnectionTds.cs
- DataGridItemCollection.cs
- LongAverageAggregationOperator.cs
- ToolStripContainer.cs
- PersonalizationStateQuery.cs
- Pair.cs
- NegatedCellConstant.cs
- StreamWithDictionary.cs
- TimelineGroup.cs