Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- NameObjectCollectionBase.cs
- TaiwanCalendar.cs
- SoapHeaderAttribute.cs
- XmlAtomErrorReader.cs
- StdValidatorsAndConverters.cs
- FillRuleValidation.cs
- DataSourceBooleanViewSchemaConverter.cs
- SingleObjectCollection.cs
- UnSafeCharBuffer.cs
- SplashScreen.cs
- TagMapCollection.cs
- Sql8ConformanceChecker.cs
- HtmlFormAdapter.cs
- ScalarConstant.cs
- KeyedHashAlgorithm.cs
- InkPresenter.cs
- HyperLinkField.cs
- ResourceReader.cs
- StructuredType.cs
- ProxyFragment.cs
- WindowsSecurityTokenAuthenticator.cs
- SqlCacheDependencySection.cs
- RegexCompiler.cs
- LogLogRecordEnumerator.cs
- SelectionUIHandler.cs
- IfAction.cs
- SortExpressionBuilder.cs
- SharedPerformanceCounter.cs
- CorrelationService.cs
- TextChangedEventArgs.cs
- TemplateBuilder.cs
- DbConnectionPoolOptions.cs
- ResourceAssociationSetEnd.cs
- SystemIPGlobalStatistics.cs
- DefaultPropertyAttribute.cs
- Throw.cs
- TransferRequestHandler.cs
- WindowsComboBox.cs
- XmlHierarchyData.cs
- XPathNode.cs
- SkipQueryOptionExpression.cs
- SectionInput.cs
- FormDocumentDesigner.cs
- VisualStateManager.cs
- XmlArrayItemAttribute.cs
- ImageButton.cs
- RenameRuleObjectDialog.cs
- DescendentsWalker.cs
- DoubleAnimationBase.cs
- TraceContextRecord.cs
- OracleDateTime.cs
- ColorInterpolationModeValidation.cs
- EpmCustomContentWriterNodeData.cs
- BaseParser.cs
- Listener.cs
- Content.cs
- DataBindingExpressionBuilder.cs
- NetSectionGroup.cs
- DefinitionProperties.cs
- TraversalRequest.cs
- DataGridPagingPage.cs
- Evidence.cs
- XmlToDatasetMap.cs
- NamespaceDisplay.xaml.cs
- ColorKeyFrameCollection.cs
- StringCollectionEditor.cs
- ISAPIRuntime.cs
- FileDetails.cs
- EntityClientCacheEntry.cs
- UpdateRecord.cs
- ProviderConnectionPoint.cs
- BamlResourceSerializer.cs
- ConstructorNeedsTagAttribute.cs
- TextEditorDragDrop.cs
- DelegateTypeInfo.cs
- PageAsyncTaskManager.cs
- NativeMethods.cs
- TaskForm.cs
- EdmItemCollection.cs
- DetailsView.cs
- Win32Native.cs
- IPPacketInformation.cs
- SinglePageViewer.cs
- UnsafeMethods.cs
- WebControlAdapter.cs
- OutputCacheSection.cs
- DockAndAnchorLayout.cs
- OpenTypeCommon.cs
- ReadOnlyCollectionBuilder.cs
- FaultReason.cs
- Font.cs
- XamlFxTrace.cs
- dataSvcMapFileLoader.cs
- ObjectMaterializedEventArgs.cs
- XmlnsCompatibleWithAttribute.cs
- HtmlImage.cs
- _UncName.cs
- UTF7Encoding.cs
- EmptyWithCancelationCheckWorkItem.cs
- Attributes.cs