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
- CodeThrowExceptionStatement.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- SamlSerializer.cs
- ObjRef.cs
- TokenBasedSetEnumerator.cs
- EntityCommandDefinition.cs
- SignedXmlDebugLog.cs
- SrgsToken.cs
- ProgressBarAutomationPeer.cs
- BindToObject.cs
- TextFormatterImp.cs
- ScriptingRoleServiceSection.cs
- WpfWebRequestHelper.cs
- GlyphingCache.cs
- MouseBinding.cs
- XmlHelper.cs
- ConnectionAcceptor.cs
- SqlDataSourceEnumerator.cs
- Expression.cs
- DataObjectEventArgs.cs
- Size3DValueSerializer.cs
- HtmlInputRadioButton.cs
- TextEditorDragDrop.cs
- OdbcConnectionStringbuilder.cs
- PageScaling.cs
- CqlQuery.cs
- SoapFault.cs
- XsltException.cs
- WSMessageEncoding.cs
- NavigationWindowAutomationPeer.cs
- Encoding.cs
- JavaScriptString.cs
- InitialServerConnectionReader.cs
- TextElementEnumerator.cs
- EntityKeyElement.cs
- XmlNamespaceMappingCollection.cs
- ExpressionWriter.cs
- ProcessHostServerConfig.cs
- LocatorPartList.cs
- PageRouteHandler.cs
- WebPartVerbCollection.cs
- PropVariant.cs
- XmlSchemaType.cs
- ContainerActivationHelper.cs
- BasicViewGenerator.cs
- ClientTargetCollection.cs
- ErrorLog.cs
- AddressingVersion.cs
- RequestTimeoutManager.cs
- CharConverter.cs
- SoapExtension.cs
- ControlBindingsCollection.cs
- UpdateEventArgs.cs
- XmlSchemaInferenceException.cs
- TransactionScopeDesigner.cs
- ObjectDataSourceView.cs
- RotateTransform3D.cs
- DataGridViewColumnConverter.cs
- AssemblyAttributes.cs
- SystemInformation.cs
- MarshalDirectiveException.cs
- MemberAccessException.cs
- XmlLanguage.cs
- TagPrefixAttribute.cs
- DefaultShape.cs
- ExpressionsCollectionEditor.cs
- TabControlCancelEvent.cs
- _UncName.cs
- Vector.cs
- WeakReference.cs
- CodeTryCatchFinallyStatement.cs
- DataBinder.cs
- CompositeFontParser.cs
- MdImport.cs
- MouseActionValueSerializer.cs
- UriTemplateHelpers.cs
- Utils.cs
- SoapIgnoreAttribute.cs
- odbcmetadatafactory.cs
- Win32Native.cs
- TemplateField.cs
- ThemeInfoAttribute.cs
- FormView.cs
- TreeNodeBindingCollection.cs
- GPRECT.cs
- DataGridLinkButton.cs
- Set.cs
- DesignTimeValidationFeature.cs
- EntityClassGenerator.cs
- HttpWebRequest.cs
- ModulesEntry.cs
- WindowsSpinner.cs
- OdbcStatementHandle.cs
- WebPartEditVerb.cs
- ServerIdentity.cs
- ApplyImportsAction.cs
- IdentityValidationException.cs
- HttpEncoderUtility.cs
- RoleManagerEventArgs.cs
- RuntimeArgumentHandle.cs