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
- Evidence.cs
- TextTreeRootTextBlock.cs
- SetIndexBinder.cs
- RouteItem.cs
- UnmanagedMemoryStreamWrapper.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ClrProviderManifest.cs
- ServiceMetadataBehavior.cs
- DecimalKeyFrameCollection.cs
- ListViewPagedDataSource.cs
- SrgsRulesCollection.cs
- KeyInfo.cs
- ManipulationStartedEventArgs.cs
- BitmapEffectDrawing.cs
- StreamInfo.cs
- ProxyWebPartConnectionCollection.cs
- panel.cs
- MessageHeaders.cs
- ViewBase.cs
- ZoomPercentageConverter.cs
- FieldMetadata.cs
- StylusEventArgs.cs
- SHA1.cs
- CountAggregationOperator.cs
- ObjectDisposedException.cs
- MessageSecurityOverMsmqElement.cs
- ConnectionConsumerAttribute.cs
- ToolStripKeyboardHandlingService.cs
- RelatedView.cs
- FormsAuthenticationTicket.cs
- DBDataPermission.cs
- AdobeCFFWrapper.cs
- AutomationIdentifierGuids.cs
- OutputWindow.cs
- SafeHandle.cs
- CodeAttachEventStatement.cs
- XmlSequenceWriter.cs
- CroppedBitmap.cs
- ServicePrincipalNameElement.cs
- WorkflowNamespace.cs
- OutputCacheProfile.cs
- ObjectSpanRewriter.cs
- XpsResource.cs
- LogFlushAsyncResult.cs
- UniformGrid.cs
- SyndicationSerializer.cs
- SqlDataSourceSelectingEventArgs.cs
- ObjectStateManagerMetadata.cs
- ConfigurationElementProperty.cs
- PageWrapper.cs
- CompoundFileIOPermission.cs
- CodeDomDecompiler.cs
- SoapFaultCodes.cs
- XamlClipboardData.cs
- X509PeerCertificateAuthenticationElement.cs
- TriggerActionCollection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- WebControl.cs
- TableAdapterManagerHelper.cs
- TypographyProperties.cs
- ErrorProvider.cs
- ComponentResourceKey.cs
- WindowsFormsSectionHandler.cs
- AssemblyFilter.cs
- SuppressIldasmAttribute.cs
- LocalizedNameDescriptionPair.cs
- ArrayWithOffset.cs
- AttributeProviderAttribute.cs
- ExpressionPrefixAttribute.cs
- ZoneIdentityPermission.cs
- SeekStoryboard.cs
- FramingDecoders.cs
- Content.cs
- PageParserFilter.cs
- EntityDataSourceSelectingEventArgs.cs
- BaseValidator.cs
- Separator.cs
- WSFederationHttpSecurityElement.cs
- WebCategoryAttribute.cs
- DropShadowBitmapEffect.cs
- path.cs
- StatusBarPanelClickEvent.cs
- DataSysAttribute.cs
- WindowsPrincipal.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- Vector3DValueSerializer.cs
- SelectionItemProviderWrapper.cs
- SecurityChannelFaultConverter.cs
- SafeEventHandle.cs
- TypefaceMap.cs
- StyleCollection.cs
- RoleService.cs
- DesignerLoader.cs
- PolyQuadraticBezierSegment.cs
- GroupQuery.cs
- SpellerHighlightLayer.cs
- GZipStream.cs
- SoapAttributeAttribute.cs
- Expressions.cs
- Internal.cs