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
- SynchronizingStream.cs
- Int16Animation.cs
- ProvidePropertyAttribute.cs
- ReferentialConstraint.cs
- IpcChannel.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DayRenderEvent.cs
- TouchPoint.cs
- Utils.cs
- SchemaImporter.cs
- SqlMetaData.cs
- ProxyDataContractResolver.cs
- invalidudtexception.cs
- HealthMonitoringSection.cs
- ToolZoneDesigner.cs
- FixedSOMLineRanges.cs
- BinaryCommonClasses.cs
- SearchForVirtualItemEventArgs.cs
- ChildChangedEventArgs.cs
- DebugView.cs
- UnionExpr.cs
- CharacterString.cs
- ScrollBarAutomationPeer.cs
- ObjectItemAttributeAssemblyLoader.cs
- ConfigurationSection.cs
- WebPartVerb.cs
- SystemSounds.cs
- MemoryFailPoint.cs
- FloaterBaseParaClient.cs
- PrtCap_Builder.cs
- EntityDesignerBuildProvider.cs
- Dump.cs
- TextRange.cs
- RenderDataDrawingContext.cs
- LongValidator.cs
- SR.cs
- ActivationArguments.cs
- WindowsGraphicsCacheManager.cs
- TextInfo.cs
- ResourceReferenceKeyNotFoundException.cs
- CursorConverter.cs
- UserMapPath.cs
- CodeSnippetStatement.cs
- cache.cs
- ProtectedProviderSettings.cs
- AuthenticationService.cs
- CriticalFinalizerObject.cs
- DynamicArgumentDesigner.xaml.cs
- DataTableNewRowEvent.cs
- EncodingDataItem.cs
- SafeEventLogReadHandle.cs
- RequestDescription.cs
- UIElementCollection.cs
- VScrollProperties.cs
- XmlnsDictionary.cs
- CatchBlock.cs
- MasterPageCodeDomTreeGenerator.cs
- EmptyCollection.cs
- ServiceEndpointElement.cs
- SoapCodeExporter.cs
- ToolStripDropDownClosingEventArgs.cs
- OleDbError.cs
- CompilerCollection.cs
- TreeViewBindingsEditorForm.cs
- EdmComplexPropertyAttribute.cs
- IMembershipProvider.cs
- MonthCalendarDesigner.cs
- QilTargetType.cs
- TypeGeneratedEventArgs.cs
- DataKey.cs
- LeftCellWrapper.cs
- WmlControlAdapter.cs
- Polygon.cs
- codemethodreferenceexpression.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- DataSourceCache.cs
- SqlMethodAttribute.cs
- RegistrationServices.cs
- __Error.cs
- VirtualDirectoryMappingCollection.cs
- PointAnimation.cs
- OdbcEnvironment.cs
- RawKeyboardInputReport.cs
- TreeNode.cs
- TextEditorCopyPaste.cs
- LogConverter.cs
- FontInfo.cs
- TickBar.cs
- LazyTextWriterCreator.cs
- FilePrompt.cs
- WorkflowElementDialog.cs
- GeneralTransform2DTo3DTo2D.cs
- OleDbDataReader.cs
- FixedSOMContainer.cs
- ItemsPresenter.cs
- FontWeights.cs
- GC.cs
- BamlResourceContent.cs
- RSAOAEPKeyExchangeFormatter.cs
- SafeBitVector32.cs