Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Sockets / LingerOption.cs / 1305376 / LingerOption.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Sockets { using System; ////// public class LingerOption { bool enabled; int lingerTime; ///Contains information for a socket's linger time, the amount of time it will /// remain after closing if data remains to be sent. ////// public LingerOption(bool enable, int seconds) { Enabled = enable; LingerTime = seconds; } ////// Initializes a new instance of the ///class. /// /// public bool Enabled { get { return enabled; } set { enabled = value; } } ////// Enables or disables lingering after /// close. /// ////// public int LingerTime { get { return lingerTime; } set { lingerTime = value; } } } // class LingerOption } // namespace System.Net.Sockets // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// The amount of time, in seconds, to remain connected after a close. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebResponse.cs
- DesignerActionItem.cs
- XamlStream.cs
- KeyedCollection.cs
- WebRequestModuleElementCollection.cs
- TabItem.cs
- PasswordRecoveryAutoFormat.cs
- AmbientLight.cs
- FileStream.cs
- SignerInfo.cs
- FontDriver.cs
- MarshalByValueComponent.cs
- MultiTrigger.cs
- PersonalizablePropertyEntry.cs
- AnimatedTypeHelpers.cs
- NetNamedPipeSecurityMode.cs
- XmlSchemaAppInfo.cs
- SQLChars.cs
- CodeLabeledStatement.cs
- ListenerConstants.cs
- Validator.cs
- _KerberosClient.cs
- PresentationAppDomainManager.cs
- CompilationUnit.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ActivityExecutionWorkItem.cs
- AssemblyAttributes.cs
- FacetValueContainer.cs
- RemotingException.cs
- DataGridViewLinkCell.cs
- TailPinnedEventArgs.cs
- AnimatedTypeHelpers.cs
- HttpModulesSection.cs
- TypeConverter.cs
- SystemParameters.cs
- BufferedStream.cs
- Calendar.cs
- HtmlInputImage.cs
- TypefaceMetricsCache.cs
- InfocardExtendedInformationCollection.cs
- Point4DConverter.cs
- Convert.cs
- Constant.cs
- TemplatingOptionsDialog.cs
- ExpressionNormalizer.cs
- TimelineGroup.cs
- StringComparer.cs
- CustomWebEventKey.cs
- DataKeyCollection.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- WindowsServiceElement.cs
- MenuItemCollection.cs
- XMLSyntaxException.cs
- IPCCacheManager.cs
- TypeConverterAttribute.cs
- TextServicesManager.cs
- FormatPage.cs
- ListSourceHelper.cs
- ToolStripProgressBar.cs
- BooleanAnimationUsingKeyFrames.cs
- ElementMarkupObject.cs
- __FastResourceComparer.cs
- PropertyGrid.cs
- SqlConnection.cs
- IsolatedStorage.cs
- GroupDescription.cs
- _CommandStream.cs
- MimeTypeAttribute.cs
- LongValidatorAttribute.cs
- AVElementHelper.cs
- Journaling.cs
- PassportAuthenticationEventArgs.cs
- CommentEmitter.cs
- SecurityPermission.cs
- RectAnimationBase.cs
- CodeSnippetStatement.cs
- LinqDataSourceInsertEventArgs.cs
- ExpandableObjectConverter.cs
- ImageClickEventArgs.cs
- TextShapeableCharacters.cs
- ProfileBuildProvider.cs
- SeverityFilter.cs
- CallSiteBinder.cs
- DateTimeFormat.cs
- DataSourceGroupCollection.cs
- LayeredChannelListener.cs
- PanelDesigner.cs
- AnnouncementInnerClientCD1.cs
- DbXmlEnabledProviderManifest.cs
- DurableTimerExtension.cs
- FullTrustAssembly.cs
- NodeInfo.cs
- WebResourceUtil.cs
- EmbeddedMailObject.cs
- GroupJoinQueryOperator.cs
- ServerIdentity.cs
- OleDbConnectionInternal.cs
- BooleanFunctions.cs
- PointAnimationUsingPath.cs
- CommandBinding.cs