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
- Transform3DGroup.cs
- Visual3D.cs
- KnownTypesProvider.cs
- TemplatedWizardStep.cs
- MessageFormatterConverter.cs
- OdbcParameter.cs
- PersianCalendar.cs
- TimeSpanStorage.cs
- StringWriter.cs
- DataGridBeginningEditEventArgs.cs
- WebProxyScriptElement.cs
- TraceHandlerErrorFormatter.cs
- DataControlPagerLinkButton.cs
- SafeCryptoHandles.cs
- UIElementAutomationPeer.cs
- RegexParser.cs
- CallbackTimeoutsBehavior.cs
- HierarchicalDataSourceControl.cs
- WebPartMenuStyle.cs
- ProfileSection.cs
- DetailsViewDeleteEventArgs.cs
- PersonalizationDictionary.cs
- RoleGroup.cs
- NamedObject.cs
- VariantWrapper.cs
- ControlValuePropertyAttribute.cs
- AddInProcess.cs
- InvokeWebServiceDesigner.cs
- PrintDialog.cs
- PageBuildProvider.cs
- DrawTreeNodeEventArgs.cs
- WindowsEditBox.cs
- DataGridViewColumnEventArgs.cs
- IgnoreSectionHandler.cs
- EdmComplexTypeAttribute.cs
- ToolStripTemplateNode.cs
- XmlDataSourceView.cs
- NamespaceEmitter.cs
- DateTimeUtil.cs
- SurrogateEncoder.cs
- PerformanceCounterLib.cs
- WorkflowDefinitionDispenser.cs
- DataObjectMethodAttribute.cs
- Console.cs
- ProgressBarHighlightConverter.cs
- CursorConverter.cs
- CngProvider.cs
- StateChangeEvent.cs
- VectorConverter.cs
- Tag.cs
- smtpconnection.cs
- metadatamappinghashervisitor.cs
- DataViewManager.cs
- QilInvokeLateBound.cs
- ModulesEntry.cs
- WsdlContractConversionContext.cs
- Visual3D.cs
- DocumentationServerProtocol.cs
- NodeCounter.cs
- TypeGeneratedEventArgs.cs
- ImageMap.cs
- SchemaHelper.cs
- ListControl.cs
- CounterSampleCalculator.cs
- LogSwitch.cs
- parserscommon.cs
- DXD.cs
- ScaleTransform3D.cs
- ForEachDesigner.xaml.cs
- WinEventTracker.cs
- EntityViewContainer.cs
- TypeSemantics.cs
- PropertyOverridesTypeEditor.cs
- SchemaObjectWriter.cs
- SettingsAttributes.cs
- PasswordDeriveBytes.cs
- OdbcDataAdapter.cs
- XmlChoiceIdentifierAttribute.cs
- GradientBrush.cs
- WebPartConnectionsConfigureVerb.cs
- ProxyWebPartConnectionCollection.cs
- Transactions.cs
- DataViewSetting.cs
- Page.cs
- XPathDocumentNavigator.cs
- RuntimeConfigurationRecord.cs
- Decoder.cs
- ScriptControl.cs
- FunctionQuery.cs
- ProcessHostMapPath.cs
- Margins.cs
- WmfPlaceableFileHeader.cs
- AmbientEnvironment.cs
- ScalarType.cs
- ChtmlPageAdapter.cs
- WebZoneDesigner.cs
- ping.cs
- ValuePattern.cs
- WebControl.cs
- SmiMetaData.cs