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
- EntityTypeEmitter.cs
- SessionPageStatePersister.cs
- SR.cs
- XsltSettings.cs
- LogSwitch.cs
- SqlMultiplexer.cs
- PortCache.cs
- UrlAuthFailedErrorFormatter.cs
- InvariantComparer.cs
- LocationInfo.cs
- DesignerLoader.cs
- CompilerTypeWithParams.cs
- SqlVisitor.cs
- PropertyRef.cs
- MonthCalendar.cs
- WmlLinkAdapter.cs
- XmlSchemaCompilationSettings.cs
- SafeMILHandle.cs
- HtmlWindowCollection.cs
- CompareValidator.cs
- LinearGradientBrush.cs
- WindowsAuthenticationModule.cs
- File.cs
- LocatorManager.cs
- Pair.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ExternalFile.cs
- SrgsDocument.cs
- OuterGlowBitmapEffect.cs
- ObjectSpanRewriter.cs
- EmptyCollection.cs
- WindowsListViewGroupHelper.cs
- XamlLoadErrorInfo.cs
- CharEntityEncoderFallback.cs
- QueryContinueDragEventArgs.cs
- Compiler.cs
- DbConnectionPool.cs
- PackagePart.cs
- DiscoveryProxy.cs
- mediapermission.cs
- BridgeDataReader.cs
- Point4DValueSerializer.cs
- SR.cs
- TrustManagerMoreInformation.cs
- XslException.cs
- ProcessHost.cs
- FileDialogCustomPlace.cs
- OleDbErrorCollection.cs
- FileEnumerator.cs
- HostingEnvironmentWrapper.cs
- ProviderBase.cs
- ComponentCollection.cs
- ConfigurationManagerInternal.cs
- ArrangedElementCollection.cs
- HostedElements.cs
- X509ClientCertificateCredentialsElement.cs
- Stream.cs
- OperationPerformanceCounters.cs
- ActivationServices.cs
- PerformanceCounterPermissionEntry.cs
- WebPartEditorCancelVerb.cs
- DetailsView.cs
- XPathNodeList.cs
- ADMembershipUser.cs
- CompletionBookmark.cs
- EntityDataSourceQueryBuilder.cs
- Marshal.cs
- SystemIPGlobalStatistics.cs
- MSAANativeProvider.cs
- ProfileModule.cs
- PropertyRef.cs
- LineMetrics.cs
- ThreadStaticAttribute.cs
- ConfigurationManagerInternal.cs
- SizeLimitedCache.cs
- RijndaelManaged.cs
- SessionStateItemCollection.cs
- OciHandle.cs
- ValueHandle.cs
- GenericIdentity.cs
- ResourceAttributes.cs
- ObjectPersistData.cs
- ResourcePool.cs
- ListArgumentProvider.cs
- UserNameServiceElement.cs
- FileDialog_Vista_Interop.cs
- Version.cs
- ToolZoneDesigner.cs
- ToolStripManager.cs
- LinqToSqlWrapper.cs
- CompatibleComparer.cs
- FusionWrap.cs
- ActiveDocumentEvent.cs
- XamlDesignerSerializationManager.cs
- SQLStringStorage.cs
- BitmapEffectGroup.cs
- XmlTypeAttribute.cs
- ByteStream.cs
- PrinterResolution.cs
- VerticalAlignConverter.cs