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
- ValidationRule.cs
- InfoCardArgumentException.cs
- BinaryUtilClasses.cs
- TextTreeUndoUnit.cs
- OleDbParameter.cs
- CellQuery.cs
- SingleKeyFrameCollection.cs
- EncryptedXml.cs
- SecurityTokenSerializer.cs
- AssemblyHelper.cs
- ToolTipAutomationPeer.cs
- NodeInfo.cs
- NamespaceQuery.cs
- ServiceBehaviorElement.cs
- SystemResources.cs
- SectionInformation.cs
- SID.cs
- XmlSchemaAttribute.cs
- WorkflowRuntimeService.cs
- XPathAncestorIterator.cs
- DispatcherEventArgs.cs
- ResourcesBuildProvider.cs
- UtilityExtension.cs
- ConfigXmlWhitespace.cs
- webclient.cs
- Token.cs
- ReflectPropertyDescriptor.cs
- ShapingEngine.cs
- PowerStatus.cs
- MeasurementDCInfo.cs
- CursorConverter.cs
- DataMemberFieldConverter.cs
- MessageFormatterConverter.cs
- NativeMethods.cs
- AssemblyCache.cs
- ManagementOptions.cs
- Proxy.cs
- UrlMappingsSection.cs
- Quack.cs
- TextOnlyOutput.cs
- DesignerExtenders.cs
- AggregateNode.cs
- DecimalAnimationBase.cs
- ColorContext.cs
- RegisteredHiddenField.cs
- TcpTransportSecurity.cs
- HierarchicalDataBoundControlAdapter.cs
- DataViewManagerListItemTypeDescriptor.cs
- HelpEvent.cs
- RbTree.cs
- ReaderWriterLock.cs
- TimelineGroup.cs
- ServiceInfo.cs
- EmissiveMaterial.cs
- XsltSettings.cs
- ActivityTrace.cs
- CrossSiteScriptingValidation.cs
- CompoundFileStreamReference.cs
- OracleTimeSpan.cs
- Freezable.cs
- DelegateSerializationHolder.cs
- StorageMappingItemCollection.cs
- ThreadPool.cs
- DataGridViewSelectedRowCollection.cs
- HtmlTableRow.cs
- NativeMethodsCLR.cs
- DecimalFormatter.cs
- PermissionAttributes.cs
- UrlAuthorizationModule.cs
- CheckBox.cs
- ListViewItem.cs
- TableLayoutRowStyleCollection.cs
- KeyValueSerializer.cs
- returneventsaver.cs
- CachedCompositeFamily.cs
- RijndaelManagedTransform.cs
- ListBase.cs
- CachedBitmap.cs
- BaseProcessor.cs
- SymLanguageVendor.cs
- ClientOptions.cs
- DetailsViewInsertedEventArgs.cs
- Fx.cs
- DataGridColumnsPage.cs
- ResourceWriter.cs
- ThreadPool.cs
- OleDbDataReader.cs
- SafeFileHandle.cs
- SettingsContext.cs
- DesignerResources.cs
- ScriptResourceInfo.cs
- BufferedGraphics.cs
- HtmlUtf8RawTextWriter.cs
- NativeMethods.cs
- Int32Storage.cs
- SaveFileDialog.cs
- LinqDataSource.cs
- KerberosTicketHashIdentifierClause.cs
- JournalNavigationScope.cs
- LayoutEditorPart.cs