Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SqlProviderUtilities.cs
- MarkupObject.cs
- MenuTracker.cs
- FullTextState.cs
- FlatButtonAppearance.cs
- TemplateNameScope.cs
- ServiceDescriptionSerializer.cs
- CodeBlockBuilder.cs
- ProxyDataContractResolver.cs
- DataContractJsonSerializer.cs
- SmtpClient.cs
- ValidatingReaderNodeData.cs
- BitArray.cs
- _NegoStream.cs
- SqlError.cs
- CompiledRegexRunner.cs
- TextServicesCompartmentEventSink.cs
- DbConnectionPoolGroup.cs
- HtmlSelectionListAdapter.cs
- LayoutSettings.cs
- BorderGapMaskConverter.cs
- ScriptingSectionGroup.cs
- WCFBuildProvider.cs
- PackagePartCollection.cs
- DodSequenceMerge.cs
- NamedPermissionSet.cs
- SharedConnectionListener.cs
- SimpleMailWebEventProvider.cs
- Transform3DCollection.cs
- ScriptControl.cs
- Tile.cs
- DBAsyncResult.cs
- GeometryGroup.cs
- SettingsPropertyValueCollection.cs
- SpellerHighlightLayer.cs
- GridViewEditEventArgs.cs
- FilterQueryOptionExpression.cs
- OperationPickerDialog.designer.cs
- CompositeCollection.cs
- TransformProviderWrapper.cs
- ServiceManagerHandle.cs
- HandlerBase.cs
- sitestring.cs
- Ref.cs
- CodeCatchClause.cs
- XmlSchemaExternal.cs
- TextDecorationCollection.cs
- XmlIncludeAttribute.cs
- MenuItemStyle.cs
- CompilerCollection.cs
- FilterQuery.cs
- SqlConnectionStringBuilder.cs
- QueryRewriter.cs
- OpCodes.cs
- listitem.cs
- cryptoapiTransform.cs
- InfoCardListRequest.cs
- loginstatus.cs
- DES.cs
- MemberPath.cs
- ReverseInheritProperty.cs
- TableLayoutSettings.cs
- ProgressChangedEventArgs.cs
- ContentIterators.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- DataColumnCollection.cs
- AnimationClockResource.cs
- DbParameterCollectionHelper.cs
- APCustomTypeDescriptor.cs
- AnnotationComponentManager.cs
- IconBitmapDecoder.cs
- AutoGeneratedField.cs
- ConfigXmlDocument.cs
- DBSchemaTable.cs
- LeftCellWrapper.cs
- DesignerForm.cs
- AppDomainGrammarProxy.cs
- ControlDesigner.cs
- PeerNameResolver.cs
- TraceHandlerErrorFormatter.cs
- TreeNodeMouseHoverEvent.cs
- DictionaryChange.cs
- TdsParserSessionPool.cs
- PixelShader.cs
- SqlFunctionAttribute.cs
- SafeHandles.cs
- ListViewItem.cs
- RelationshipFixer.cs
- ProcessRequestArgs.cs
- GatewayDefinition.cs
- HttpModuleCollection.cs
- XNodeNavigator.cs
- AspNetSynchronizationContext.cs
- CqlBlock.cs
- BuildManagerHost.cs
- HtmlHistory.cs
- IISMapPath.cs
- RecognitionEventArgs.cs
- SqlDataSourceFilteringEventArgs.cs
- CollectionContainer.cs