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
- SurrogateSelector.cs
- ProfileInfo.cs
- DurableTimerExtension.cs
- SystemException.cs
- WebControlToolBoxItem.cs
- CustomAttributeFormatException.cs
- ArgumentOutOfRangeException.cs
- CompoundFileDeflateTransform.cs
- XmlReflectionMember.cs
- PointCollection.cs
- GridSplitterAutomationPeer.cs
- ScrollBarRenderer.cs
- ExclusiveHandle.cs
- WSHttpBindingCollectionElement.cs
- DataGridViewEditingControlShowingEventArgs.cs
- Nullable.cs
- LinqToSqlWrapper.cs
- BuildDependencySet.cs
- XamlStream.cs
- DiffuseMaterial.cs
- BrushMappingModeValidation.cs
- Validator.cs
- EntityDataSourceReferenceGroup.cs
- ProfileBuildProvider.cs
- HealthMonitoringSectionHelper.cs
- WindowsFormsHost.cs
- VBIdentifierNameEditor.cs
- FileSecurity.cs
- ErrorFormatterPage.cs
- ProcessHostMapPath.cs
- SerializableTypeCodeDomSerializer.cs
- SelfSignedCertificate.cs
- CoreSwitches.cs
- GcSettings.cs
- FrameworkName.cs
- MulticastNotSupportedException.cs
- MetafileHeader.cs
- TrackingAnnotationCollection.cs
- __ConsoleStream.cs
- ComponentEditorForm.cs
- Compress.cs
- DtdParser.cs
- newinstructionaction.cs
- Light.cs
- DataTableTypeConverter.cs
- LowerCaseStringConverter.cs
- SpeechUI.cs
- LicenseProviderAttribute.cs
- DesignSurfaceEvent.cs
- BufferedGraphicsManager.cs
- CompiledIdentityConstraint.cs
- OutputCacheProfileCollection.cs
- TabControl.cs
- SwitchAttribute.cs
- documentsequencetextview.cs
- HandleRef.cs
- XmlNamespaceMapping.cs
- HelpEvent.cs
- UITypeEditor.cs
- StyleSheetComponentEditor.cs
- XmlHierarchyData.cs
- Ipv6Element.cs
- MessageBox.cs
- RuleSettingsCollection.cs
- TextEditorThreadLocalStore.cs
- ColorAnimationUsingKeyFrames.cs
- WorkflowClientDeliverMessageWrapper.cs
- SqlReorderer.cs
- InstanceData.cs
- AttachedAnnotationChangedEventArgs.cs
- XamlVector3DCollectionSerializer.cs
- LiteralControl.cs
- ColumnResizeUndoUnit.cs
- ErasingStroke.cs
- MembershipSection.cs
- SerializationStore.cs
- XmlnsDefinitionAttribute.cs
- ETagAttribute.cs
- D3DImage.cs
- BridgeDataRecord.cs
- HiddenField.cs
- HttpCacheVaryByContentEncodings.cs
- MouseGestureValueSerializer.cs
- XmlTextReaderImplHelpers.cs
- TreeBuilder.cs
- Encoder.cs
- AtlasWeb.Designer.cs
- CodeTypeParameterCollection.cs
- CaretElement.cs
- MemberHolder.cs
- ExpressionBindingCollection.cs
- ClockGroup.cs
- AutomationPatternInfo.cs
- DeflateEmulationStream.cs
- IsolatedStorageFileStream.cs
- ImplicitInputBrush.cs
- TextWriterTraceListener.cs
- SqlDataSourceFilteringEventArgs.cs
- ProfilePropertyNameValidator.cs
- TextLineBreak.cs