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
- GroupDescription.cs
- SafeViewOfFileHandle.cs
- PeerNameRecord.cs
- ServiceKnownTypeAttribute.cs
- CounterCreationDataConverter.cs
- HostingEnvironment.cs
- InternalConfigHost.cs
- CssStyleCollection.cs
- ClickablePoint.cs
- SqlConnectionStringBuilder.cs
- WindowProviderWrapper.cs
- PersonalizableTypeEntry.cs
- ToolTip.cs
- IntellisenseTextBox.designer.cs
- InlineObject.cs
- ListParagraph.cs
- DownloadProgressEventArgs.cs
- SqlCrossApplyToCrossJoin.cs
- safex509handles.cs
- PipelineModuleStepContainer.cs
- RegexWorker.cs
- DesignTimeParseData.cs
- XmlSchemaException.cs
- SkewTransform.cs
- HeaderPanel.cs
- RelationshipEndMember.cs
- MethodCallConverter.cs
- Opcode.cs
- SizeF.cs
- SignatureHelper.cs
- LongValidatorAttribute.cs
- PersonalizationProviderHelper.cs
- WindowPattern.cs
- WebPartDisplayModeEventArgs.cs
- DocumentPageHost.cs
- XmlValidatingReader.cs
- XPathMultyIterator.cs
- ParentQuery.cs
- TreeNodeMouseHoverEvent.cs
- UIHelper.cs
- Thread.cs
- BindingMemberInfo.cs
- DiagnosticStrings.cs
- StorageMappingFragment.cs
- ClientScriptManager.cs
- _FixedSizeReader.cs
- CompositeActivityDesigner.cs
- ImplicitInputBrush.cs
- MemberPath.cs
- StringOutput.cs
- ListControlConvertEventArgs.cs
- ExpressionBuilder.cs
- PeerResolverMode.cs
- RoutedUICommand.cs
- ToolboxBitmapAttribute.cs
- FixedSOMTableRow.cs
- EntityConnectionStringBuilder.cs
- ChangeConflicts.cs
- BindingListCollectionView.cs
- ScriptReference.cs
- XPathAncestorIterator.cs
- WebPartUtil.cs
- ConnectionPoint.cs
- MenuAdapter.cs
- WindowInteractionStateTracker.cs
- CacheMemory.cs
- EdmError.cs
- EqualityComparer.cs
- WsatServiceCertificate.cs
- AddInServer.cs
- ValidationErrorCollection.cs
- StorageFunctionMapping.cs
- XamlClipboardData.cs
- SchemaCollectionCompiler.cs
- PanningMessageFilter.cs
- NullExtension.cs
- DurableEnlistmentState.cs
- TrustLevel.cs
- TraceHandler.cs
- Main.cs
- RegistryConfigurationProvider.cs
- RepeatBehaviorConverter.cs
- ExpressionBuilder.cs
- CreateUserWizardStep.cs
- HMACSHA1.cs
- XXXInfos.cs
- DataGrid.cs
- ADMembershipProvider.cs
- AsymmetricKeyExchangeDeformatter.cs
- CollectionBuilder.cs
- ListViewItemSelectionChangedEvent.cs
- PermissionAttributes.cs
- CustomSignedXml.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- RuleSettings.cs
- WebRequest.cs
- DataGridViewIntLinkedList.cs
- XamlBuildTaskServices.cs
- ShutDownListener.cs
- RequestCacheEntry.cs