Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- StylusPointPropertyInfo.cs
- FixedSOMPageConstructor.cs
- StrokeNodeEnumerator.cs
- EpmContentSerializerBase.cs
- ImageClickEventArgs.cs
- ManifestBasedResourceGroveler.cs
- View.cs
- InvalidDataContractException.cs
- TextBox.cs
- FrameworkElementFactory.cs
- GridViewAutomationPeer.cs
- DataGridViewImageColumn.cs
- ImageIndexEditor.cs
- FileStream.cs
- _OSSOCK.cs
- GeneralTransform3D.cs
- PolicyLevel.cs
- x509store.cs
- DesignerAttribute.cs
- Properties.cs
- KeyValuePairs.cs
- OraclePermissionAttribute.cs
- CompositeFontInfo.cs
- TextWriterTraceListener.cs
- AdornerDecorator.cs
- SHA512Managed.cs
- CompensationTokenData.cs
- DesignerLoader.cs
- EntitySet.cs
- FixedStringLookup.cs
- UniqueIdentifierService.cs
- InteropEnvironment.cs
- PlainXmlSerializer.cs
- DataTrigger.cs
- FixedSOMTable.cs
- MemberNameValidator.cs
- PersonalizationStateInfo.cs
- SqlDataSourceCustomCommandEditor.cs
- KnownTypesProvider.cs
- ImageFormat.cs
- SqlXmlStorage.cs
- XmlResolver.cs
- DocobjHost.cs
- SystemFonts.cs
- SchemaEntity.cs
- BatchParser.cs
- AppModelKnownContentFactory.cs
- DocumentPageViewAutomationPeer.cs
- DelegateSerializationHolder.cs
- CallbackValidator.cs
- NumberAction.cs
- ValidationErrorCollection.cs
- DataControlFieldCell.cs
- FunctionDetailsReader.cs
- RuntimeHelpers.cs
- OneToOneMappingSerializer.cs
- MessageContractMemberAttribute.cs
- SequentialOutput.cs
- WhitespaceRuleLookup.cs
- OptimizedTemplateContentHelper.cs
- NamedPipeWorkerProcess.cs
- TreeNodeConverter.cs
- User.cs
- _ChunkParse.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- Input.cs
- ButtonBaseAutomationPeer.cs
- _emptywebproxy.cs
- ReferencedType.cs
- ResourceDescriptionAttribute.cs
- InstanceContextManager.cs
- _LocalDataStoreMgr.cs
- CqlLexerHelpers.cs
- ToolStripArrowRenderEventArgs.cs
- SAPICategories.cs
- HandlerFactoryWrapper.cs
- PixelFormat.cs
- SmiMetaDataProperty.cs
- LifetimeServices.cs
- TargetInvocationException.cs
- SecurityMessageProperty.cs
- DataGridViewRowCollection.cs
- FullTextState.cs
- KernelTypeValidation.cs
- Console.cs
- OptimalTextSource.cs
- WebPartsPersonalization.cs
- XmlEncoding.cs
- CacheSection.cs
- FixedSOMFixedBlock.cs
- Enum.cs
- XmlILConstructAnalyzer.cs
- IconBitmapDecoder.cs
- PublisherMembershipCondition.cs
- InnerItemCollectionView.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- PageThemeCodeDomTreeGenerator.cs
- WindowsToolbarItemAsMenuItem.cs
- ScrollProperties.cs
- TypeSystemHelpers.cs