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
- DataRecord.cs
- HWStack.cs
- GetWinFXPath.cs
- XmlSchemaAll.cs
- XmlSchemaValidator.cs
- ItemsPresenter.cs
- TypeRestriction.cs
- Transactions.cs
- ReflectionPermission.cs
- TreeChangeInfo.cs
- TableStyle.cs
- AdRotator.cs
- TranslateTransform.cs
- HttpConfigurationContext.cs
- HorizontalAlignConverter.cs
- DCSafeHandle.cs
- Rfc2898DeriveBytes.cs
- ImageSourceConverter.cs
- DbParameterCollectionHelper.cs
- ContextProperty.cs
- ParallelTimeline.cs
- TableAutomationPeer.cs
- WebPartManagerInternals.cs
- MexNamedPipeBindingElement.cs
- DependencyPropertyHelper.cs
- MessageFormatterConverter.cs
- SessionIDManager.cs
- JsonFormatGeneratorStatics.cs
- OletxResourceManager.cs
- UnaryQueryOperator.cs
- Rect3DConverter.cs
- HitTestFilterBehavior.cs
- ServicesUtilities.cs
- DataGridViewRowEventArgs.cs
- X500Name.cs
- ApplicationFileParser.cs
- CodeBlockBuilder.cs
- LineServicesCallbacks.cs
- MostlySingletonList.cs
- MouseOverProperty.cs
- RegisteredArrayDeclaration.cs
- DateTimeConstantAttribute.cs
- SchemaLookupTable.cs
- StrongNameSignatureInformation.cs
- Application.cs
- TextDecorationCollectionConverter.cs
- GeometryConverter.cs
- LinqDataSourceStatusEventArgs.cs
- CharacterBufferReference.cs
- SafeLibraryHandle.cs
- PaperSize.cs
- CharAnimationBase.cs
- FormatConvertedBitmap.cs
- EntityViewGenerator.cs
- ScalarType.cs
- DbConnectionStringBuilder.cs
- XmlSchemaSimpleTypeList.cs
- FolderLevelBuildProvider.cs
- CompilerGlobalScopeAttribute.cs
- ListViewDataItem.cs
- TemplateControl.cs
- UITypeEditors.cs
- ConfigXmlReader.cs
- XPathChildIterator.cs
- baseaxisquery.cs
- WmlSelectionListAdapter.cs
- DateTime.cs
- ProgramNode.cs
- MeasurementDCInfo.cs
- StylusDownEventArgs.cs
- ImageSource.cs
- ButtonColumn.cs
- ObjectDataSourceFilteringEventArgs.cs
- SocketPermission.cs
- DesignTimeSiteMapProvider.cs
- SerialStream.cs
- BindingExpressionUncommonField.cs
- XmlAggregates.cs
- FontResourceCache.cs
- ServiceModelActivationSectionGroup.cs
- ForEach.cs
- UnionCodeGroup.cs
- CaseCqlBlock.cs
- VisualTreeUtils.cs
- SystemParameters.cs
- DataRelationPropertyDescriptor.cs
- CompilerGlobalScopeAttribute.cs
- TaskbarItemInfo.cs
- BamlRecordHelper.cs
- TcpPortSharing.cs
- _emptywebproxy.cs
- ErrorWebPart.cs
- Color.cs
- LinkedResourceCollection.cs
- AutomationPeer.cs
- DecodeHelper.cs
- PrimitiveCodeDomSerializer.cs
- HttpListenerException.cs
- CompilerParameters.cs
- HtmlTableCell.cs