Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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;
///
/// Contains information for a socket's linger time, the amount of time it will
/// remain after closing if data remains to be sent.
///
public class LingerOption {
bool enabled;
int lingerTime;
///
///
/// Initializes a new instance of the class.
///
///
public LingerOption(bool enable, int seconds) {
Enabled = enable;
LingerTime = seconds;
}
///
///
/// Enables or disables lingering after
/// close.
///
///
public bool Enabled {
get {
return enabled;
}
set {
enabled = value;
}
}
///
///
/// The amount of time, in seconds, to remain connected after a 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.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Net.Sockets {
using System;
///
/// Contains information for a socket's linger time, the amount of time it will
/// remain after closing if data remains to be sent.
///
public class LingerOption {
bool enabled;
int lingerTime;
///
///
/// Initializes a new instance of the class.
///
///
public LingerOption(bool enable, int seconds) {
Enabled = enable;
LingerTime = seconds;
}
///
///
/// Enables or disables lingering after
/// close.
///
///
public bool Enabled {
get {
return enabled;
}
set {
enabled = value;
}
}
///
///
/// The amount of time, in seconds, to remain connected after a 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DocumentPageHost.cs
- IgnoreFlushAndCloseStream.cs
- MappingMetadataHelper.cs
- RijndaelManaged.cs
- CompiledIdentityConstraint.cs
- AccessDataSourceDesigner.cs
- ToolboxSnapDragDropEventArgs.cs
- DbSetClause.cs
- UnsignedPublishLicense.cs
- TraceInternal.cs
- ReaderWriterLock.cs
- DataGridViewLayoutData.cs
- Collection.cs
- FormatterServices.cs
- FamilyMapCollection.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- ManagedCodeMarkers.cs
- AsyncContentLoadedEventArgs.cs
- Form.cs
- HttpConfigurationContext.cs
- UndoEngine.cs
- XmlSerializerAssemblyAttribute.cs
- ToolConsole.cs
- EventMap.cs
- ObjectStateManagerMetadata.cs
- XmlSchemaSimpleContent.cs
- SoapObjectReader.cs
- NumberSubstitution.cs
- Action.cs
- DataGridParentRows.cs
- ParameterDataSourceExpression.cs
- LinqMaximalSubtreeNominator.cs
- WhitespaceReader.cs
- DesignerActionMethodItem.cs
- Soap.cs
- DataObjectSettingDataEventArgs.cs
- DocumentPaginator.cs
- CommandPlan.cs
- localization.cs
- __TransparentProxy.cs
- MenuEventArgs.cs
- SafeHandles.cs
- HelloMessageCD1.cs
- WmpBitmapDecoder.cs
- ContentPathSegment.cs
- _AutoWebProxyScriptWrapper.cs
- DataColumnMapping.cs
- PaintValueEventArgs.cs
- ExpressionLexer.cs
- SchemaElementDecl.cs
- DrawingServices.cs
- TypeToArgumentTypeConverter.cs
- Ops.cs
- ErrorWrapper.cs
- SmiContext.cs
- DesignSurface.cs
- LowerCaseStringConverter.cs
- EntityCommandCompilationException.cs
- DataGridViewCellStateChangedEventArgs.cs
- WebPartZone.cs
- UriScheme.cs
- SchemaElementLookUpTableEnumerator.cs
- DefaultPrintController.cs
- CachedPathData.cs
- OAVariantLib.cs
- UndoManager.cs
- Span.cs
- DecimalFormatter.cs
- Gdiplus.cs
- IntermediatePolicyValidator.cs
- RecordManager.cs
- VisualProxy.cs
- ResourceReferenceKeyNotFoundException.cs
- safemediahandle.cs
- InternalConfigEventArgs.cs
- Activity.cs
- RepeatButton.cs
- TemplateBindingExtension.cs
- XmlIncludeAttribute.cs
- IfElseDesigner.xaml.cs
- compensatingcollection.cs
- TemplatedMailWebEventProvider.cs
- ExpressionList.cs
- NameTable.cs
- PropertyKey.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- DoubleLink.cs
- DataTableMapping.cs
- FileEnumerator.cs
- streamingZipPartStream.cs
- AnnotationHighlightLayer.cs
- CachedFontFamily.cs
- SoapFault.cs
- TemplateKeyConverter.cs
- PieceNameHelper.cs
- SiteMapNodeItemEventArgs.cs
- IIS7WorkerRequest.cs
- BitmapEffectState.cs
- UxThemeWrapper.cs
- TransformerInfo.cs