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
- HtmlInputControl.cs
- GifBitmapDecoder.cs
- UrlPath.cs
- TempFiles.cs
- HttpListenerContext.cs
- mediaclock.cs
- MetaModel.cs
- MergeFilterQuery.cs
- XmlAnyElementAttributes.cs
- wgx_exports.cs
- SQLDateTime.cs
- Claim.cs
- WebControlParameterProxy.cs
- PermissionRequestEvidence.cs
- ByteAnimationBase.cs
- MimeTypePropertyAttribute.cs
- Validator.cs
- PropertyInfoSet.cs
- ArgumentOutOfRangeException.cs
- UriExt.cs
- propertyentry.cs
- ConnectionsZone.cs
- CounterSet.cs
- WCFBuildProvider.cs
- XmlSchemaAnyAttribute.cs
- ProtocolElement.cs
- NativeRightsManagementAPIsStructures.cs
- APCustomTypeDescriptor.cs
- complextypematerializer.cs
- NullableDoubleSumAggregationOperator.cs
- CfgArc.cs
- StrongNameUtility.cs
- ListItemConverter.cs
- ShutDownListener.cs
- GraphicsState.cs
- AuthenticatingEventArgs.cs
- EventItfInfo.cs
- _ChunkParse.cs
- ToolStripLocationCancelEventArgs.cs
- BoolExpr.cs
- ADRole.cs
- DockProviderWrapper.cs
- BrowserInteropHelper.cs
- SizeAnimationBase.cs
- FormatterServices.cs
- MonthChangedEventArgs.cs
- FontFaceLayoutInfo.cs
- HtmlFormParameterWriter.cs
- DynamicPropertyHolder.cs
- ManipulationStartingEventArgs.cs
- XmlNavigatorFilter.cs
- TraceSection.cs
- GenericFlowSwitchHelper.cs
- TemplateDefinition.cs
- dataSvcMapFileLoader.cs
- WebPageTraceListener.cs
- Int16Storage.cs
- HeaderUtility.cs
- DataGridViewRow.cs
- XmlNamespaceMapping.cs
- HttpRawResponse.cs
- SerTrace.cs
- TagPrefixCollection.cs
- _ConnectStream.cs
- exports.cs
- cookiecollection.cs
- ELinqQueryState.cs
- EnumerableRowCollectionExtensions.cs
- DecoderFallback.cs
- DoubleStorage.cs
- UnsafePeerToPeerMethods.cs
- GridItem.cs
- XmlReflectionMember.cs
- HighContrastHelper.cs
- EncryptedXml.cs
- Utility.cs
- ModuleConfigurationInfo.cs
- CornerRadius.cs
- TypeListConverter.cs
- ListItemsPage.cs
- SwitchElementsCollection.cs
- PackageRelationship.cs
- XmlMtomWriter.cs
- TextBoxDesigner.cs
- HtmlToClrEventProxy.cs
- XmlNamespaceDeclarationsAttribute.cs
- SByteConverter.cs
- ToolStripPanelRenderEventArgs.cs
- BuildManager.cs
- ClientBuildManager.cs
- ProfilePropertyNameValidator.cs
- PipelineComponent.cs
- DataKey.cs
- TrackPoint.cs
- WebPartRestoreVerb.cs
- CalendarDay.cs
- DetailsViewDeletedEventArgs.cs
- OdbcHandle.cs
- SchemaCollectionPreprocessor.cs
- PeerToPeerException.cs