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
- BooleanExpr.cs
- XmlNode.cs
- SmiEventSink_DeferedProcessing.cs
- NullExtension.cs
- WebPartMinimizeVerb.cs
- GridViewColumnHeaderAutomationPeer.cs
- SingleConverter.cs
- Site.cs
- OdbcDataAdapter.cs
- peernodestatemanager.cs
- ChineseLunisolarCalendar.cs
- Win32SafeHandles.cs
- OleDbDataReader.cs
- CqlIdentifiers.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- RenamedEventArgs.cs
- PasswordDeriveBytes.cs
- TextTreeDeleteContentUndoUnit.cs
- SQLDecimalStorage.cs
- CreateUserWizard.cs
- BooleanSwitch.cs
- PackageRelationshipCollection.cs
- InstanceBehavior.cs
- FileRecordSequence.cs
- AuthorizationRuleCollection.cs
- DrawingServices.cs
- PropertyConverter.cs
- CmsUtils.cs
- TemplateControlBuildProvider.cs
- RegisteredScript.cs
- DirectionalAction.cs
- Keyboard.cs
- ChangeProcessor.cs
- DropAnimation.xaml.cs
- BypassElement.cs
- SoapMessage.cs
- DataConnectionHelper.cs
- CurrentChangedEventManager.cs
- ToolStripProgressBar.cs
- TransactedReceiveScope.cs
- Mouse.cs
- CompositeFontFamily.cs
- ExtensionDataObject.cs
- ScriptControlManager.cs
- Int32EqualityComparer.cs
- SamlAssertion.cs
- CryptoApi.cs
- HttpChannelListener.cs
- MenuTracker.cs
- PreviewPageInfo.cs
- BulletedListEventArgs.cs
- PreviewPrintController.cs
- DesignerOptionService.cs
- ElementHost.cs
- _Win32.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- UserControlFileEditor.cs
- InfoCardRSACryptoProvider.cs
- Tuple.cs
- PreservationFileWriter.cs
- XPathAncestorIterator.cs
- FontWeights.cs
- MetadataUtil.cs
- XmlText.cs
- WebHttpBinding.cs
- LabelLiteral.cs
- StreamInfo.cs
- ValueConversionAttribute.cs
- XmlCompatibilityReader.cs
- TrustLevel.cs
- EqualityComparer.cs
- SmiEventSink_Default.cs
- ServicePointManagerElement.cs
- GroupStyle.cs
- XPathBinder.cs
- ToolBarButtonDesigner.cs
- LeaseManager.cs
- DisposableCollectionWrapper.cs
- DesignerOptionService.cs
- OperationResponse.cs
- DoubleKeyFrameCollection.cs
- XmlSchemaImporter.cs
- XAMLParseException.cs
- DataMisalignedException.cs
- SystemDiagnosticsSection.cs
- TcpStreams.cs
- KeyValueConfigurationCollection.cs
- PropertyValueChangedEvent.cs
- CornerRadiusConverter.cs
- KeyConverter.cs
- ValueOfAction.cs
- ScriptServiceAttribute.cs
- ObjectContext.cs
- HttpStaticObjectsCollectionWrapper.cs
- AsyncOperationManager.cs
- PointLight.cs
- odbcmetadatacolumnnames.cs
- WebZoneDesigner.cs
- ProfilePropertyMetadata.cs
- TransactionOptions.cs