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
- PageCatalogPart.cs
- DataGridViewRowCancelEventArgs.cs
- Inline.cs
- ConstraintStruct.cs
- ActiveXHost.cs
- AddInSegmentDirectoryNotFoundException.cs
- JsonDeserializer.cs
- DocumentSchemaValidator.cs
- Relationship.cs
- Geometry3D.cs
- ToolStripLocationCancelEventArgs.cs
- WindowsFormsHost.cs
- ObjectContext.cs
- AttributeUsageAttribute.cs
- GraphicsContainer.cs
- ClientTargetSection.cs
- RetrieveVirtualItemEventArgs.cs
- HelpProvider.cs
- PriorityBinding.cs
- Literal.cs
- JoinSymbol.cs
- SurrogateDataContract.cs
- PersonalizableTypeEntry.cs
- ACE.cs
- ColorConvertedBitmap.cs
- TextEndOfParagraph.cs
- ProtocolException.cs
- GACIdentityPermission.cs
- PropertyManager.cs
- CodeExporter.cs
- UIElementHelper.cs
- _FixedSizeReader.cs
- LineServicesCallbacks.cs
- FormatVersion.cs
- TextEditorContextMenu.cs
- WebPermission.cs
- WindowsContainer.cs
- XmlTextReaderImpl.cs
- DoubleCollection.cs
- HttpCapabilitiesSectionHandler.cs
- SyntaxCheck.cs
- mda.cs
- RegexCharClass.cs
- HtmlMobileTextWriter.cs
- UnicodeEncoding.cs
- ContextMarshalException.cs
- ResolveMatches11.cs
- EventPropertyMap.cs
- LayoutManager.cs
- XmlSchemaElement.cs
- SiteMapNodeItem.cs
- RuleProcessor.cs
- SchemaCollectionPreprocessor.cs
- TdsParser.cs
- ToolStripItemClickedEventArgs.cs
- HttpCachePolicy.cs
- ConstraintStruct.cs
- BeginEvent.cs
- DBDataPermission.cs
- DataGridHeaderBorder.cs
- InfoCardSymmetricAlgorithm.cs
- ApplicationBuildProvider.cs
- And.cs
- OpenTypeLayoutCache.cs
- DelayedRegex.cs
- VirtualPathExtension.cs
- FileDialog.cs
- ReferentialConstraint.cs
- ConnectionModeReader.cs
- WebPartDisplayModeCollection.cs
- TargetInvocationException.cs
- CheckBoxField.cs
- ListSortDescription.cs
- DbQueryCommandTree.cs
- DataRecordInfo.cs
- ScriptingSectionGroup.cs
- PrivilegedConfigurationManager.cs
- ManualWorkflowSchedulerService.cs
- IriParsingElement.cs
- TreeViewAutomationPeer.cs
- StrongNameSignatureInformation.cs
- Token.cs
- ListViewItemEventArgs.cs
- HtmlInputHidden.cs
- GradientStop.cs
- BackStopAuthenticationModule.cs
- FormsAuthenticationConfiguration.cs
- ExpressionBuilder.cs
- UniformGrid.cs
- ServiceBuildProvider.cs
- HttpHandlerActionCollection.cs
- RedistVersionInfo.cs
- MemoryMappedView.cs
- PlaceHolder.cs
- SystemColorTracker.cs
- FileStream.cs
- TextBoxLine.cs
- ApplicationServiceManager.cs
- MILUtilities.cs
- ReadWriteObjectLock.cs