Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Sockets / LingerOption.cs / 1 / 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/// 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
- MouseButton.cs
- DtdParser.cs
- ChineseLunisolarCalendar.cs
- FreezableOperations.cs
- XmlIgnoreAttribute.cs
- StreamingContext.cs
- CommandDevice.cs
- CheckBox.cs
- ListParagraph.cs
- PointLightBase.cs
- TextWriter.cs
- IntSecurity.cs
- SystemIcmpV4Statistics.cs
- XmlAnyElementAttribute.cs
- __Filters.cs
- PageBuildProvider.cs
- MimeBasePart.cs
- SqlPersonalizationProvider.cs
- TimeZone.cs
- ProcessHostConfigUtils.cs
- LocalsItemDescription.cs
- TemplateColumn.cs
- WebPartVerbCollection.cs
- EventListenerClientSide.cs
- Dispatcher.cs
- XmlBinaryWriter.cs
- AccessText.cs
- RuleSettingsCollection.cs
- HttpHandlerActionCollection.cs
- BasicHttpMessageSecurityElement.cs
- SynchronizationContext.cs
- Maps.cs
- RSAOAEPKeyExchangeFormatter.cs
- StateMachine.cs
- ImageMetadata.cs
- ErrorFormatterPage.cs
- TextPenaltyModule.cs
- RequestCacheEntry.cs
- TextPointer.cs
- SmiMetaData.cs
- safemediahandle.cs
- FindCriteriaCD1.cs
- ForeignConstraint.cs
- ImageClickEventArgs.cs
- SettingsContext.cs
- BinaryReader.cs
- Int16.cs
- MimePart.cs
- CqlQuery.cs
- AsyncWaitHandle.cs
- FacetValues.cs
- ResourcePart.cs
- ResourceAttributes.cs
- TypeConverter.cs
- CompilerError.cs
- CompilerGlobalScopeAttribute.cs
- FileNotFoundException.cs
- Transform3D.cs
- StrongNameKeyPair.cs
- InternalsVisibleToAttribute.cs
- Geometry.cs
- NameGenerator.cs
- ClientUrlResolverWrapper.cs
- dataobject.cs
- ConnectorRouter.cs
- CompilerWrapper.cs
- DataFormats.cs
- LoopExpression.cs
- PrimaryKeyTypeConverter.cs
- DataBindingHandlerAttribute.cs
- ImageClickEventArgs.cs
- Scene3D.cs
- CompiledIdentityConstraint.cs
- BaseParser.cs
- PropertyDescriptorCollection.cs
- HtmlTableCell.cs
- State.cs
- DataFormat.cs
- SharedConnectionWorkflowTransactionService.cs
- DataError.cs
- GridViewUpdateEventArgs.cs
- OutgoingWebResponseContext.cs
- HttpModuleAction.cs
- XmlBinaryReaderSession.cs
- FlowDocument.cs
- RoutingBehavior.cs
- SafeViewOfFileHandle.cs
- ControlBuilder.cs
- SevenBitStream.cs
- ParameterCollection.cs
- NgenServicingAttributes.cs
- DocumentXPathNavigator.cs
- CounterCreationDataCollection.cs
- ListViewCommandEventArgs.cs
- HtmlCommandAdapter.cs
- SiteMapNodeItemEventArgs.cs
- DataSourceExpressionCollection.cs
- RequestQueryProcessor.cs
- SafeHandles.cs
- HotSpot.cs