Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Sockets / SocketInformation.cs / 1305376 / SocketInformation.cs
using System.Runtime.Serialization; namespace System.Net.Sockets { [Serializable] public struct SocketInformation{ byte[] protocolInformation; SocketInformationOptions options; [OptionalField] EndPoint remoteEndPoint; 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; } } } internal EndPoint RemoteEndPoint{ get{ return remoteEndPoint; } set{ remoteEndPoint = value; } } } } // 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
- MouseCaptureWithinProperty.cs
- FontUnit.cs
- CollectionDataContract.cs
- safelink.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- MimeXmlImporter.cs
- TaskExceptionHolder.cs
- SoapAttributeOverrides.cs
- ShaderEffect.cs
- WebPartDisplayModeCollection.cs
- ICollection.cs
- PartManifestEntry.cs
- FieldNameLookup.cs
- SqlNotificationEventArgs.cs
- XslVisitor.cs
- UInt32Storage.cs
- NavigationWindowAutomationPeer.cs
- TraceInternal.cs
- ConfigXmlText.cs
- HtmlToClrEventProxy.cs
- TimeSpan.cs
- Transform.cs
- TableParaClient.cs
- TextLineBreak.cs
- DescendentsWalker.cs
- ConfigXmlSignificantWhitespace.cs
- ManualWorkflowSchedulerService.cs
- XPathExpr.cs
- DataConnectionHelper.cs
- FieldNameLookup.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- KeyManager.cs
- TextElementAutomationPeer.cs
- Setter.cs
- AliasedExpr.cs
- DebugHandleTracker.cs
- WebWorkflowRole.cs
- ThrowOnMultipleAssignment.cs
- DbConnectionHelper.cs
- CodeNamespaceImport.cs
- ParameterRetriever.cs
- BuildManagerHost.cs
- CorrelationManager.cs
- XamlBuildTaskServices.cs
- WebPartVerbCollection.cs
- MainMenu.cs
- HtmlShim.cs
- DiscoveryViaBehavior.cs
- RichTextBox.cs
- TrackBar.cs
- QueryOpcode.cs
- CompilationPass2Task.cs
- MenuAutomationPeer.cs
- OutputCacheModule.cs
- FunctionDescription.cs
- EntryPointNotFoundException.cs
- SelectionPatternIdentifiers.cs
- EntityStoreSchemaGenerator.cs
- StorageTypeMapping.cs
- SectionUpdates.cs
- DataRowExtensions.cs
- XmlHelper.cs
- SourceItem.cs
- CultureSpecificStringDictionary.cs
- PolyLineSegment.cs
- BitmapSizeOptions.cs
- DESCryptoServiceProvider.cs
- AdPostCacheSubstitution.cs
- XmlDownloadManager.cs
- SystemUdpStatistics.cs
- ToolStripButton.cs
- BuildProviderCollection.cs
- ListViewGroupItemCollection.cs
- Figure.cs
- ConstraintStruct.cs
- DataControlField.cs
- StructuralCache.cs
- TransformerInfo.cs
- WebPartCloseVerb.cs
- TaskSchedulerException.cs
- TextModifierScope.cs
- UserPrincipalNameElement.cs
- SamlAdvice.cs
- XPathParser.cs
- XmlSchemaSimpleTypeRestriction.cs
- ItemCollection.cs
- Control.cs
- DefaultBinder.cs
- unsafeIndexingFilterStream.cs
- MsmqProcessProtocolHandler.cs
- WebReferencesBuildProvider.cs
- SchemaRegistration.cs
- DoubleCollection.cs
- CatalogZone.cs
- ClientRolePrincipal.cs
- While.cs
- SqlDataSourceFilteringEventArgs.cs
- PageRanges.cs
- XPathDocumentNavigator.cs
- ListViewInsertionMark.cs