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
- X509CertificateCollection.cs
- FilterableData.cs
- NoResizeSelectionBorderGlyph.cs
- DNS.cs
- CanExecuteRoutedEventArgs.cs
- DataGridViewCellParsingEventArgs.cs
- SecurityRuntime.cs
- DateTimeAutomationPeer.cs
- UnaryNode.cs
- DataPointer.cs
- ContextProperty.cs
- DataObjectAttribute.cs
- SendMailErrorEventArgs.cs
- BypassElement.cs
- SQLSingle.cs
- ErrorWebPart.cs
- contentDescriptor.cs
- CodeGenerator.cs
- GridItemCollection.cs
- SafeNativeMethods.cs
- ContentDisposition.cs
- HtmlListAdapter.cs
- XmlDataImplementation.cs
- Viewport3DAutomationPeer.cs
- BaseParser.cs
- NameValuePermission.cs
- StorageMappingItemCollection.cs
- ApplicationDirectory.cs
- ThreadPool.cs
- BaseProcessor.cs
- TheQuery.cs
- EmbeddedMailObject.cs
- DataGridViewCellValidatingEventArgs.cs
- TableLayoutSettingsTypeConverter.cs
- JournalEntryListConverter.cs
- LocalClientSecuritySettingsElement.cs
- DummyDataSource.cs
- SR.cs
- JsonXmlDataContract.cs
- ObjectNotFoundException.cs
- QualifiedCellIdBoolean.cs
- TextContainer.cs
- RemotingConfigParser.cs
- TimeoutHelper.cs
- ProxyWebPart.cs
- EventListener.cs
- ThumbAutomationPeer.cs
- BitmapSizeOptions.cs
- Domain.cs
- DataGridAddNewRow.cs
- CanonicalFontFamilyReference.cs
- DbQueryCommandTree.cs
- LogicalExpr.cs
- SyndicationDeserializer.cs
- DynamicObjectAccessor.cs
- DataTemplateSelector.cs
- ImageFormatConverter.cs
- ConnectorSelectionGlyph.cs
- FamilyMapCollection.cs
- ResourceContainer.cs
- List.cs
- SystemEvents.cs
- ACL.cs
- WebServiceMethodData.cs
- HandledEventArgs.cs
- ChildDocumentBlock.cs
- XmlNodeReader.cs
- XdrBuilder.cs
- DefaultAssemblyResolver.cs
- SessionEndedEventArgs.cs
- ObjectDataSourceStatusEventArgs.cs
- DeploymentSection.cs
- CodeSnippetStatement.cs
- ErasingStroke.cs
- FileVersion.cs
- EventProviderWriter.cs
- MSG.cs
- LockedActivityGlyph.cs
- ButtonBase.cs
- DefaultBinder.cs
- FontStretches.cs
- ExtendedPropertyDescriptor.cs
- ImageCollectionEditor.cs
- FontDriver.cs
- XPathNavigatorReader.cs
- ActivityBindForm.Designer.cs
- SystemNetHelpers.cs
- XPathDocumentIterator.cs
- CodeSnippetTypeMember.cs
- OverlappedAsyncResult.cs
- CodeCatchClauseCollection.cs
- MultiAsyncResult.cs
- ReadOnlyMetadataCollection.cs
- TableAutomationPeer.cs
- smtpconnection.cs
- XmlCustomFormatter.cs
- ResourceExpressionBuilder.cs
- SoapProtocolImporter.cs
- DbFunctionCommandTree.cs
- XmlNodeChangedEventArgs.cs