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
- XmlSchemaSimpleType.cs
- WebServicesDescriptionAttribute.cs
- AnimationClockResource.cs
- HelloOperationAsyncResult.cs
- Win32.cs
- CodeSubDirectoriesCollection.cs
- HTMLTextWriter.cs
- PointLight.cs
- SmiRecordBuffer.cs
- ValidationError.cs
- UrlAuthFailedErrorFormatter.cs
- ListViewCommandEventArgs.cs
- SymbolType.cs
- HMAC.cs
- TempFiles.cs
- ExtractedStateEntry.cs
- SoapElementAttribute.cs
- Calendar.cs
- EmptyElement.cs
- BindingValueChangedEventArgs.cs
- InputLanguageCollection.cs
- SrgsElementFactoryCompiler.cs
- MemoryMappedViewStream.cs
- SoapSchemaExporter.cs
- SqlRowUpdatingEvent.cs
- MenuEventArgs.cs
- ContentType.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- BrowserCapabilitiesCompiler.cs
- COSERVERINFO.cs
- BaseCollection.cs
- handlecollector.cs
- SharedPersonalizationStateInfo.cs
- NumberFunctions.cs
- EntityDataSourceEntitySetNameItem.cs
- ScrollItemPatternIdentifiers.cs
- RootProfilePropertySettingsCollection.cs
- DateTimeFormatInfo.cs
- CryptoProvider.cs
- ComponentConverter.cs
- Char.cs
- ThemeInfoAttribute.cs
- SafeViewOfFileHandle.cs
- TraceUtils.cs
- WebProxyScriptElement.cs
- ToolStripSplitButton.cs
- recordstatefactory.cs
- SafeHandle.cs
- UpdateException.cs
- TextRange.cs
- RSATokenProvider.cs
- StreamHelper.cs
- IntegerFacetDescriptionElement.cs
- PolicyManager.cs
- HttpRequestCacheValidator.cs
- ArrayList.cs
- ContextQuery.cs
- ProfileGroupSettings.cs
- SrgsNameValueTag.cs
- WebBrowserHelper.cs
- PageCache.cs
- GradientBrush.cs
- OracleBinary.cs
- ProcessProtocolHandler.cs
- JsonStringDataContract.cs
- IndentTextWriter.cs
- Configuration.cs
- DiscriminatorMap.cs
- SqlTriggerAttribute.cs
- SmiTypedGetterSetter.cs
- HelpProvider.cs
- ExceptionUtil.cs
- WebRequestModuleElementCollection.cs
- XPathScanner.cs
- ToolStripPanelRow.cs
- DeviceContext.cs
- WebPartDeleteVerb.cs
- SafeProcessHandle.cs
- ListViewUpdateEventArgs.cs
- StorageMappingItemCollection.cs
- DefaultSerializationProviderAttribute.cs
- FieldMetadata.cs
- WindowsListViewScroll.cs
- ListViewTableRow.cs
- TextAction.cs
- CryptoConfig.cs
- MobileComponentEditorPage.cs
- Stacktrace.cs
- ManagementInstaller.cs
- NativeWindow.cs
- mansign.cs
- MgmtConfigurationRecord.cs
- InputLangChangeRequestEvent.cs
- PersistenceProviderDirectory.cs
- WaitHandle.cs
- ConfigurationLocation.cs
- NavigationHelper.cs
- PropertyManager.cs
- HitTestParameters3D.cs
- DesignerForm.cs