Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Discovery / System / ServiceModel / Channels / UdpConstants.cs / 1484997 / UdpConstants.cs
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------
namespace System.ServiceModel.Channels
{
using System;
static class UdpConstants
{
// max is 64K - 20 (IP header) - 8(UDP header) - 1 (wraparound)
public const int MaxMessageSizeOverIPv4 = 64 * 1024 - 20 - 8 - 1;
public const int MaxTimeToLive = 255;
public const int MinReceiveBufferSize = 1;
public const int MinTimeToLive = 0; //localhost traffic only
public const int PendingReceiveCountPerProcessor = 2;
public const string Scheme = "soap.udp";
internal static class Defaults
{
public static readonly TimeSpan ReceiveTimeout = TimeSpan.FromMinutes(1);
public static readonly TimeSpan SendTimeout = TimeSpan.FromMinutes(1);
public const int DuplicateMessageHistoryLength = 0;
public const int InterfaceIndex = -1;
public const int MaxPendingMessageCount = 32;
public const long MaxReceivedMessageSize = (long)UdpConstants.MaxMessageSizeOverIPv4;
public const int SocketReceiveBufferSize = 64 * 1024;
public const int TimeToLive = 1;
public static MessageEncoderFactory MessageEncoderFactory = new TextMessageEncodingBindingElement().CreateMessageEncoderFactory();
}
}
}
// 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
- ResourceManager.cs
- Font.cs
- CipherData.cs
- KeyboardNavigation.cs
- CryptoApi.cs
- GenericPrincipal.cs
- AggregatePushdown.cs
- DataGridGeneralPage.cs
- IOException.cs
- GridViewCommandEventArgs.cs
- AutoResizedEvent.cs
- MailDefinition.cs
- DefaultEventAttribute.cs
- WindowsHyperlink.cs
- WebServiceData.cs
- PageAsyncTask.cs
- EntityCommandCompilationException.cs
- WebPartCancelEventArgs.cs
- QuinticEase.cs
- IdentityNotMappedException.cs
- ElementAction.cs
- ImageUrlEditor.cs
- ChannelSinkStacks.cs
- WebControlsSection.cs
- ParseElement.cs
- Size3D.cs
- SQLInt32.cs
- RtfControlWordInfo.cs
- AuthenticationModuleElement.cs
- UnknownExceptionActionHelper.cs
- XmlSchemaSimpleTypeUnion.cs
- NameValueCollection.cs
- ComUdtElement.cs
- EnterpriseServicesHelper.cs
- GridPattern.cs
- TypeInitializationException.cs
- CodeGeneratorAttribute.cs
- CodeCastExpression.cs
- LayoutSettings.cs
- TraceProvider.cs
- XmlSchemaSimpleContentExtension.cs
- HtmlSelectionListAdapter.cs
- GeneralTransform.cs
- RelationshipConstraintValidator.cs
- EnumValAlphaComparer.cs
- LocalIdKeyIdentifierClause.cs
- QilBinary.cs
- HtmlInputCheckBox.cs
- ObjectDataSourceView.cs
- SelectionGlyphBase.cs
- ShadowGlyph.cs
- ModifierKeysConverter.cs
- EventHandlersStore.cs
- CacheAxisQuery.cs
- TableCellCollection.cs
- StylusPointProperty.cs
- SubMenuStyleCollection.cs
- ContractUtils.cs
- WebControl.cs
- JoinGraph.cs
- HeaderUtility.cs
- FamilyTypeface.cs
- FormsAuthenticationCredentials.cs
- SoapTypeAttribute.cs
- DynamicControl.cs
- FileFormatException.cs
- EncodingInfo.cs
- DataGridHeaderBorder.cs
- CodeArrayCreateExpression.cs
- FrameworkElement.cs
- Debugger.cs
- shaperfactory.cs
- DesignerLoader.cs
- FormParameter.cs
- PointLight.cs
- DiscoveryOperationContextExtension.cs
- _SslSessionsCache.cs
- SemaphoreSecurity.cs
- CommunicationException.cs
- Vector3DAnimation.cs
- CheckBox.cs
- WithStatement.cs
- BufferedGraphicsManager.cs
- MouseButton.cs
- MdiWindowListStrip.cs
- WindowsGraphics2.cs
- PointCollectionValueSerializer.cs
- ComponentResourceManager.cs
- IdnMapping.cs
- ScopeElement.cs
- GCHandleCookieTable.cs
- CssClassPropertyAttribute.cs
- CapabilitiesUse.cs
- TreeViewItemAutomationPeer.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- SafeNativeMethodsOther.cs
- ObjectSpanRewriter.cs
- BrowserCapabilitiesFactory.cs
- UIElementPropertyUndoUnit.cs
- ContextDataSource.cs