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
- NamespaceDisplay.xaml.cs
- DataContractSet.cs
- Assembly.cs
- EntityCommandDefinition.cs
- PackagingUtilities.cs
- NumberAction.cs
- ChannelRequirements.cs
- FacetChecker.cs
- GridToolTip.cs
- FormViewInsertedEventArgs.cs
- Clipboard.cs
- TerminatorSinks.cs
- UTF8Encoding.cs
- GenericTypeParameterBuilder.cs
- GiveFeedbackEventArgs.cs
- CodeTryCatchFinallyStatement.cs
- VisualStyleElement.cs
- Size.cs
- DummyDataSource.cs
- PropertyPathConverter.cs
- HyperLink.cs
- Crc32.cs
- COM2ExtendedUITypeEditor.cs
- SizeF.cs
- CodeChecksumPragma.cs
- NetTcpBindingElement.cs
- HistoryEventArgs.cs
- DependencyPropertyHelper.cs
- RunWorkerCompletedEventArgs.cs
- Int32Converter.cs
- SqlDataReaderSmi.cs
- OrderedDictionary.cs
- OperandQuery.cs
- User.cs
- Odbc32.cs
- FocusWithinProperty.cs
- typedescriptorpermissionattribute.cs
- EventToken.cs
- EntitySetDataBindingList.cs
- XmlNode.cs
- RowCache.cs
- SspiHelper.cs
- CodeArgumentReferenceExpression.cs
- FigureParaClient.cs
- WindowsTreeView.cs
- EndEvent.cs
- PnrpPermission.cs
- SplitterPanel.cs
- DateTimeConverter2.cs
- DataColumnMappingCollection.cs
- wgx_sdk_version.cs
- DLinqTableProvider.cs
- PersonalizationAdministration.cs
- DesignerTextViewAdapter.cs
- AsmxEndpointPickerExtension.cs
- SoapObjectReader.cs
- EpmSourcePathSegment.cs
- ProfilePropertySettings.cs
- BitmapDownload.cs
- RenderCapability.cs
- AssemblyAttributes.cs
- DependencyProperty.cs
- UshortList2.cs
- EmissiveMaterial.cs
- WebPartDescriptionCollection.cs
- IdentifierCreationService.cs
- TypedElement.cs
- HttpRuntime.cs
- XmlSchemaDocumentation.cs
- XmlCharType.cs
- DefaultValueTypeConverter.cs
- Metadata.cs
- NestPullup.cs
- PathFigureCollection.cs
- WebUtil.cs
- NonVisualControlAttribute.cs
- TagPrefixAttribute.cs
- ClientType.cs
- StringInfo.cs
- EntityClientCacheKey.cs
- ManagementOptions.cs
- DispatcherTimer.cs
- DataViewSettingCollection.cs
- MultiBindingExpression.cs
- SemanticAnalyzer.cs
- ErrorFormatter.cs
- RunWorkerCompletedEventArgs.cs
- TemplateControl.cs
- ClientSideProviderDescription.cs
- ServiceOperationParameter.cs
- HttpServerChannel.cs
- BindUriHelper.cs
- ListParaClient.cs
- KeyboardEventArgs.cs
- XmlLoader.cs
- ServiceOperationViewControl.cs
- StylusButtonEventArgs.cs
- oledbconnectionstring.cs
- VariableQuery.cs
- ListSourceHelper.cs