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
- If.cs
- Container.cs
- Span.cs
- DocumentAutomationPeer.cs
- PropertyToken.cs
- ExceptionUtil.cs
- XPathConvert.cs
- NonVisualControlAttribute.cs
- RouteTable.cs
- ListView.cs
- StateDesigner.cs
- FileSystemInfo.cs
- XmlSchemaExporter.cs
- SrgsOneOf.cs
- DynamicDiscoSearcher.cs
- Intellisense.cs
- DynamicValidatorEventArgs.cs
- FontStyles.cs
- WebControl.cs
- DesignSurfaceServiceContainer.cs
- MetricEntry.cs
- AttributeUsageAttribute.cs
- ActivityExecutor.cs
- TogglePattern.cs
- XmlDocumentSchema.cs
- FileDialogPermission.cs
- RegexCompilationInfo.cs
- ObjectDataSourceDisposingEventArgs.cs
- SqlUtil.cs
- WebPartDescriptionCollection.cs
- XmlUnspecifiedAttribute.cs
- ZipPackagePart.cs
- TraceProvider.cs
- TaiwanCalendar.cs
- Visual3D.cs
- MailHeaderInfo.cs
- ZipIOLocalFileDataDescriptor.cs
- HandlerFactoryWrapper.cs
- ReadOnlyDataSource.cs
- TriState.cs
- XmlBinaryReaderSession.cs
- SmiTypedGetterSetter.cs
- KeySplineConverter.cs
- WebServiceClientProxyGenerator.cs
- Underline.cs
- PanelStyle.cs
- CallbackHandler.cs
- ToolStripRenderEventArgs.cs
- SelectionRangeConverter.cs
- XmlConvert.cs
- Viewport3DVisual.cs
- XmlSchemaSet.cs
- DesignerEditorPartChrome.cs
- SynchronizedDispatch.cs
- ButtonChrome.cs
- MenuItemBinding.cs
- ComponentCommands.cs
- Content.cs
- XmlCharacterData.cs
- TiffBitmapDecoder.cs
- Options.cs
- FileInfo.cs
- WebPartAddingEventArgs.cs
- ExpressionList.cs
- XDeferredAxisSource.cs
- ImageClickEventArgs.cs
- FormsAuthenticationConfiguration.cs
- VoiceObjectToken.cs
- SiteMapSection.cs
- BorderGapMaskConverter.cs
- SQLByte.cs
- HttpInputStream.cs
- StorageBasedPackageProperties.cs
- XsdBuilder.cs
- CollectionConverter.cs
- SqlCachedBuffer.cs
- ByeMessageApril2005.cs
- PersonalizationDictionary.cs
- MemberNameValidator.cs
- controlskin.cs
- SchemaConstraints.cs
- FullTextBreakpoint.cs
- GreenMethods.cs
- XmlBoundElement.cs
- BinHexEncoder.cs
- AutoCompleteStringCollection.cs
- HeaderLabel.cs
- XmlSchemaAny.cs
- HtmlWindow.cs
- BitmapEffectInput.cs
- CorrelationScope.cs
- PeerApplicationLaunchInfo.cs
- PkcsUtils.cs
- ActiveXSite.cs
- KeySplineConverter.cs
- FormViewInsertEventArgs.cs
- DefaultProxySection.cs
- HttpPostProtocolReflector.cs
- XmlBinaryReader.cs
- InkSerializer.cs