Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CompositeDesignerAccessibleObject.cs
- PieceDirectory.cs
- EventLogReader.cs
- JumpList.cs
- MutexSecurity.cs
- Aggregates.cs
- TextParagraphView.cs
- InputReportEventArgs.cs
- NameNode.cs
- LockCookie.cs
- FlowLayoutSettings.cs
- DefaultClaimSet.cs
- EventDescriptorCollection.cs
- FixedFlowMap.cs
- EncoderReplacementFallback.cs
- FontNamesConverter.cs
- EntitySqlQueryState.cs
- InputLanguage.cs
- MsmqVerifier.cs
- PolicyChain.cs
- EarlyBoundInfo.cs
- PropertyCollection.cs
- UICuesEvent.cs
- RectAnimationUsingKeyFrames.cs
- HyperLinkColumn.cs
- C14NUtil.cs
- EditCommandColumn.cs
- ConfigurationManagerInternal.cs
- UTF32Encoding.cs
- BoundPropertyEntry.cs
- HeaderFilter.cs
- JournalEntryStack.cs
- NTAccount.cs
- basenumberconverter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- StringReader.cs
- DrawListViewSubItemEventArgs.cs
- IPipelineRuntime.cs
- ParallelLoopState.cs
- ThreadStateException.cs
- HitTestWithPointDrawingContextWalker.cs
- BinarySerializer.cs
- SqlCacheDependencyDatabase.cs
- CommandBindingCollection.cs
- DataViewSettingCollection.cs
- Lock.cs
- CrossSiteScriptingValidation.cs
- RsaKeyIdentifierClause.cs
- ApplicationFileParser.cs
- BindingCompleteEventArgs.cs
- Command.cs
- TextCompositionManager.cs
- ControlCollection.cs
- RequestQueryProcessor.cs
- LogRecordSequence.cs
- ZipIOExtraField.cs
- StringResourceManager.cs
- ScaleTransform.cs
- PageAsyncTaskManager.cs
- SemaphoreSlim.cs
- FacetValues.cs
- SqlDataSourceCommandParser.cs
- StylusPointProperties.cs
- FindCompletedEventArgs.cs
- PopupRoot.cs
- RayMeshGeometry3DHitTestResult.cs
- StylusButtonEventArgs.cs
- TableHeaderCell.cs
- IntPtr.cs
- VersionedStreamOwner.cs
- TypedElement.cs
- DynamicValueConverter.cs
- DrawingGroupDrawingContext.cs
- BaseTemplateParser.cs
- Cursor.cs
- MetadataPropertyvalue.cs
- EnumValAlphaComparer.cs
- Point3DKeyFrameCollection.cs
- TraceFilter.cs
- CodePropertyReferenceExpression.cs
- DataExpression.cs
- BooleanStorage.cs
- GridViewEditEventArgs.cs
- ISFTagAndGuidCache.cs
- HandlerWithFactory.cs
- StatusBarItemAutomationPeer.cs
- DrawItemEvent.cs
- Token.cs
- PaintEvent.cs
- CookieHandler.cs
- ObjectDesignerDataSourceView.cs
- RangeValueProviderWrapper.cs
- ListItemCollection.cs
- JsonCollectionDataContract.cs
- SvcMapFile.cs
- GCHandleCookieTable.cs
- cache.cs
- CodeAssignStatement.cs
- NumericExpr.cs
- ColumnReorderedEventArgs.cs